Functions

Q1: What will be the output of the following program?
#include<iostream.h>
long AptitudeFunction(int x, int y = 5, float z = 5)
{
    return(++x * ++y + (int)++z);
}
int main()
{
    cout<< AptitudeFunction(20, 10); 
    return 0;
}

A 237

B 242

C 240

D 35

E The program will report error on compilation.

ANS:A - 237

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.