Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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; 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
Step: 1
The detailed answer for the above q...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started