CMC
Company
Programming
Technical
Consider the C language code given below.
int *a;
int b[2];
a = b;
b[0] = -46;
b[1] = -23;
*a = -34;
(*++a)++;
What are the values of b[0], b[1] at the end.
A -34, -24
B -46, -22
C -34, -22
D -46, -23
Read Solution (Total 4)
-
- ans c -34, -22
- 9 years agoHelpfull: Yes(2) No(0)
- Ans (A) -34 -24
- 9 years agoHelpfull: Yes(0) No(0)
- ans c -34,-22
- 9 years agoHelpfull: Yes(0) No(0)
- *a=-34 means b[0]=-34
(*++a)=b[1]
b[1]++ = 22
output will be -34 , -22 - 9 years agoHelpfull: Yes(0) No(0)
CMC Other Question