Question: 12. What is the output of this C code? int a 5.3% 6-8/3; a). 1 b).2 13.23. What is the output of this C
![12. What is the output of this C code? int a . 5 . 3 % 6-8/3; print-%d, a); d).3 b).2 13. 23. What is the output of this C code? a) 9 14. What is the output of this C code? printf(%dn, k); d) 6 intk pow (3, 2); b) 8 int a- 10; int ptr- &a ptr+10; printf(%dsan-.ptr, a); a) 10,20 b) 20,20 c)20,10 d) 10,10 printf(-%d, B-A); 15. Determine the output of the following statement: a) B-A b) B-A c)1 d)-1 16. Determine the output of the following program. a) 2,1 b) 1,1 c) 1,2 d) 2,2 17. What is the output of this C code? int x 0; if (x 1) printfIts zeroIn else printfits not zeroIn a) Its not zero b) Its zero c) Run time errord) None 18. In C, if you pass an array as an argument to a function, what actually gets passed? a) Value of elements in array b) First element of the array c) Base address of the arrayd) Address of the last element of array 19. When 1 is entered, The output of the code below is? scanf(%d, &ch); switch (ch) case 1: printf1]n default: printf21n): b) 2 c) 12 d) Run time error a) 1 20. For the 2-dimensional array b, the value for the b[1][2] is int bl13) ((1.0,-11,(10,11,12),(8,3,9),10h a) 8 b) 5 d) 12](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2022/03/623c33524d77b_465623c3351c2542.jpg)
12. What is the output of this C code? int a 5.3% 6-8/3; a). 1 b).2 13.23. What is the output of this C code? int k = pow(3, 2); b) 8 a) 9 printf("%d,%d ", "ptr, a); a) 10,20 14. What is the output of this C code? int a = 10; int *ptr=&a; *ptr += 10; a) 2,1 c) -1 c).-1 else a) Its not zero 15. Determine the output of the following statement: a) 'B' - 'A' b) B-A c) 1 b) 20,20 c) 20,10 16. Determine the output of the following program. inty=1,x=1; printf("%d %d ",++x,y++); b) 1,1 printf("%d ", k); d) 6 17. What is the output of this C code? int x = 0; if (x = 1) } c) 1,2 printf("Its zero "); { case 1: default: printf("%d", a); d). 3 printf("Its not zero "); b) Its zero d) 10,10 printf("1 "); printf("2 "); d) -1 d) 2,2 19. When 1 is entered, The output of the code below is? scanf("%d", &ch); switch (ch) c) Run time error 18. In C, if you pass an array as an argument to a function, what actually gets passed? a) Value of elements in array b) First element of the array c) Base address of the array d) Address of the last element of array printf("%d", "B" - 'A'); a) 1 b) 2 c) 12 d) Run time error 20. For the 2-dimensional array b, the value for the b[1][2] is_ int b[][3]-{{1,0,-1), (10,11,12), (8,3,9),{0}); a) 8 b) 5 c) 3 d) None d) 12
Step by Step Solution
3.39 Rating (161 Votes )
There are 3 Steps involved in it
The detailed answer for the above q... View full answer
Get step-by-step solutions from verified subject matter experts
