If it is possible to show the answers and explain how you get it that would be g
ID: 3904501 • Letter: I
Question
If it is possible to show the answers and explain how you get it that would be greatly apprecieated.
vi) Identify the invalid C expression or choose "all are valid". Assume all variables are integer (or pointers to integers) and non-zero. 8. ar- x 9. a) v-róyl b) (p-(P-P-p) ) notnono3/2 x33-1.4z e all are valid 10. a) ant%ont b)INT-double c) three#3-X 11, a)-x-(z-44)) b) ascanf+77 c) ha-p%24 d) xaab+-77 e) all ate valid 12.a)p/q/e b) px+zz/5cccc) o-o-4 *p d)-6+m%x e) all are valid 13. a) p*q*-r b) a%b%c c) 2*(x+y) d) %d+5 e) all are valid 14. a) rbc4/440 b) Double-9 c) z0z-a+a%a d) c*644p+22 ) all are valid 15. a) z-33/2+4.3 b) p**2/i/kj cji+2-2 b) c+404+2 c) x-m+6-v24 d) xf3r6+2 e) all are valid d) chars/b-c e) all are valid d)i/i-11 e) all are validExplanation / Answer
8) e
All are valid
9) d is invalid
It must be 1.4*z
10) b is invalid
double is a keyword,and cannot be used as an identifier
11) b
scanf is a keyword and cannot be used as an identifier.
12) b
Variable name cannot start with a number
13) d
% is a binary operator . First operand is missing
14) e
All are valid
15) b
*2 doesn't make any sense as a pointer to an integer value doesn't have a meaning
16) e
Output will be -29.00$0
17) b
int truncates 2.5 to 2
18) d
-4d makes it left justified
19) b
20) e
21) d
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.