Question: 12 What will be output when you will execute following c code char arr [7)-Network; printf(%s,arr); (a) Network (b) compiler error (c) garbage value (d)
12 What will be output when you will execute following c code char arr [7)-"Network"; printf("%s",arr); (a) Network (b) compiler error (c) garbage value (d) none of the above 13 What will be output when you will execute following c code int size 20 ; int score[size] score [0 20 printf("%d", score [0]) ; (a) 20 (c) garbage value (d) none of the above (b) compiler error 14 What will be output when you will execute following c code? int a[5]-(5, 1, 15, 20, 25 int i, j. m; printf("%d, %d, %d", i, j, m); (a) 2, 6, 15 (c)2,6,20 (b) 3, 6, 15 (d) none of the above 15 An array elements are always stored in memory locations (b) consecutive (d) none of the above a) randomly () stack 16 What is the output of this C code? char str(-"hello, world " printf("d", strlen (str)) (b) 13 (d) none of the above (a) compiler error 12 17 What is the right way to Initialize array? (a) int numl6) (2,4, 12, 5, 45, 5 ); (c) int num(6) - (2,4, 12, 5, 45, 5 ) b) int num 6) (2,4, 12, 5, 45, 5 (d) none the above 18 If an array is declared as arrfSoj what is the max index (a) 50 (c) 51 (b) 49 (d) none of the above
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
