MCQOPTIONS
Saved Bookmarks
| 1. |
Which of the following will be the correct output for the program given below ? #include<stdio.h>int main ( ) { typedef int arr[ 5 ]; arr new_arr = {1, 2, 3, 4, 5 }; int k ; for (k = 0; k < 4 ; k++) printf("%d", new_arr[k] ); printf(" n"); return 0;} |
| A. | 1 2 3 4 |
| B. | 1 2 3 4 5 |
| C. | No output |
| D. | Error: Cannot use typedef with an array |
| Answer» B. 1 2 3 4 5 | |