Question: 12 What will be output when you will execute following c code char arr [7]-Network printf(%s, arr) ; (b) compiler error (a) Network (c) garbage
12 What will be output when you will execute following c code char arr [7]-"Network" printf("%s", arr) ; (b) compiler error (a) Network (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]) ; (b) compiler error (a) 20 (c) garbage value (d) none of the above 14 What will be output when you will execute following c code? int als] (5, 1, 15, 20, 25) int m; m ali++ printf("%d, %d, %d", 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. (a) randomly (c) stack (b) consecutive (d) none of the above 16 What s the output of this C code? char str "hello, world ": printf("ad", strlen (str)); (a) compiler error (c )12 (b) 13 (d) none of the above 17 | What is the right way to Initialize array? (a) int num(6) (2, 4,12, 5,45,5) (b) int num(6)-(2, 4, 12, 5, 45, 5 : (c) int num(6)-(2,4, 12, 5, 45, 5 ); (d) none the above 18 For a structure, if a variable behave as a none pointer then from the given below operators which operator can be used to access data of the structure (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
