46.
How to make an infinity loop in C?
A. loop: ….. goto loop;
B. for(;;) { }
C. while(1) { }
D. All of the above
47.
What does the following declaration mean? int (*ptr) [10];
A. ptr is an array of pointers of 10 integers.
B. ptr is a pointer to an array of 10 integers.
C. ptr is an array of 10 integers.
D. None of the above
48.
The correct way to round off a floating number x to an integer value is
A. y = int (x + 0.5)
B. y = (int) (x + 0.5)
C. y = (int) x + 0.5
D. y = (int) ((int)x + 0.5)
49.
Which of the following has compilation error in C?
A. int n = 32;
B. char ch = 65;
C. float f = (float) 3.2;
D. None of the above
50.
What is default storage class of variables in C language?
A. extern
B. local
C. auto
D. global