MCQOPTIONS
Saved Bookmarks
| 1. |
What will be the output of the following program? #include<iostream.h> class India { public: struct Bix { int x; float y; void Function(void) { y = x = (x = 4*4); y = --y * y; } void Display() { cout<< y << endl; } }B; }I; int main() { I.B.Display(); return 0; } |
| A. | 0 |
| B. | 1 |
| C. | -1 |
| D. | Garbage value |
| Answer» B. 1 | |