Q.

What will be output if you will compile and execute the following c code? #include<stdio.h> int main(){
int array[]={10,20,30,40};
printf("%d",-2[array]); return 0;
}

A. -60
B. -30
C. 60
D. garbage value
Answer» B. -30
1.7k
0
Do you find this helpful?
1

Discussion

No comments yet

Related MCQs