You have to calculate sum before you pass it to printf()
%i in printf() requires value, not address (erase & signs)
Maybe you wanted to do it like this
printf("%i plus %i is %i", x, y, x + y);
Type: Posts; User: DRK
You have to calculate sum before you pass it to printf()
%i in printf() requires value, not address (erase & signs)
Maybe you wanted to do it like this
printf("%i plus %i is %i", x, y, x + y);