Question
In C++, which operator is used to access a member
function through a pointer to an object?Solution
The arrow operator (->) accesses members of an object through a pointer.
Present ages of 'X' and 'Y' are in ratio 7:8, respectively. If twelve years hence from now, age of 'X' will be 15% less than that of 'Y', then find the ...
Present average of age of A and B is (9x-15) years. Present average age of A, B and C is (6x+5) years. If present age of B is 20% less than the present ...
The sum of ages of 4 children born at the intervals of 3 years each is 62 years. Find out the age of the youngest child.
Present ages of P and Q are in ratio 5:4, respectively. Present ages of R and P are in ratio 3:4, respectively. If the difference between ages of Q and ...
Ratio of present ages of A and B is 3:5, respectively. C who is 5 years older than A will become 35 years older after 12 years. Find the present age of B.
A is younger than B by 2 years. If the ratio of A and B ages is 8:9 respectively, then find the age of A.
- The average of the present ages of R, S and T is 28 years. Triple the present age of S is 45 more than twice the present age of R. If T’s age after 6 yea...
Sum of the present ages of A, B, C and D is 65 years. After 3 years ratio of their ages is 4:3:2:2. What is C’s present age?
A is younger than B by 3 years. If the ratio of A and B ages is 7:10 respectively, then find the age of A.
Average age of 8 boys is increased by 3 years when two of them whose age are 20 and 24 years are replaced by two new members. What is the average age of...