0

#include<stdio.h>  #include<conio.h>  void main(){  int a[]={5,10,15};  int i=0,num;  num=a[++i]+ ++i+(++i);  printf("%d",num); 

The output is 6 how?

25th Dec 2016, 7:54 AM
Arpitha G R
Arpitha G R - avatar
1 Answer
0
It can't be 6. Output should be 15. first increment i=1, a=10 second increment i=2 third increment i=3 num=10+2+3
28th Dec 2016, 2:19 AM
VOYA