References

Q1: Which of the following statement is correct about the program given below?
#include<iostream.h> 
int AptitudeFunction(int m)
{
    m *= m;
    return((10)*(m /= m)); 
}
int main()
{
    int c = 9, *d = &c, e;
    int &z = e;
    e = AptitudeFunction(c-- % 3 ? ++*d :(*d *= *d));
    z = z + e / 10;
    cout<< c << ' ' << e;
    return 0;
}

A It will result in a compile time error.

B The program will print the output 64 9.

C The program will print the output 64 10.

D The program will print the output 64 11.

ANS:A - It will result in a compile time error.

No answer description is available. Let's discuss.



img not found
img

For help Students Orientation
Mcqs Questions

One stop destination for examination, preparation, recruitment, and more. Specially designed online test to solve all your preparation worries. Go wherever you want to and practice whenever you want, using the online test platform.