

MCQOPTIONS
Saved Bookmarks
1. |
What will be the output of the following program? #include<iostream.h> typedef void(*FunPtr)(int); int Look(int = 10, int = 20); void Note(int); int main() { FunPtr ptr = Note; (*ptr)(30); return 0; } int Look(int x, int y) { return(x + y % 20); } void Note(int x) { cout<< Look(x) << endl; } |
A. | 10 |
B. | 20 |
C. | 30 |
D. | 40 |
E. | Compilation fails. |
Answer» D. 40 | |