#include<stdio.h> int main() { int i=5; printf("%d",i+++i);//o/p is 11 but i expected it will print i++=5+ i=5=10will get printed and then i will post incremented but its printed as 10? } |
#include<stdio.h> int main() { int i=5; printf("%d %d %d %d",++i,i--,i++,--i); } o/p is 5 5 4 4 why it is evaluating from right to left |
why its showing error like L value required #include<stdio.h> { int i=5; printf("%d",i+++++i); //error L value required } |
printf("%d",i+++i);//o/p is 11 but i expected [...] |
o/p is 5 5 4 4 why it is evaluating from right to left |
printf("%d",i+++++i); //error L value required |