0

#include<stdio.h>  #include<conio.h>  void main(){  int num,a=10;  num=a--- -a--;  printf("%d %d",num,a);  }

explain the output please

25th Dec 2016, 8:33 AM
Arpitha G R
Arpitha G R - avatar
3 Respostas
+ 2
a--- - a--- means (a--)-(-(a--)) so what it does: 10-(-9)=19, a was decremented twice so a=8.
25th Dec 2016, 10:43 AM
Eva
Eva - avatar
0
num=a--- ?? it should generate error🙇
25th Dec 2016, 8:44 AM
Ayush Walekar
Ayush Walekar - avatar
0
the output is 20 8 I didn't get how is this?
25th Dec 2016, 9:05 AM
Arpitha G R
Arpitha G R - avatar