This code gives me result 14. But I hope that result will be 12. so Why did this program give me this result?
#include <stdio.h>
int main()
{
int i = 5;
int a = ++i + ++i;
printf("%d",a);
return 0;
}
This code gives me result 14. But I hope that result will be 12. so Why did this program give me this result?
#include <stdio.h>
int main()
{
int i = 5;
int a = ++i + ++i;
printf("%d",a);
return 0;
}