Posts by jose machado • 21 points
2 posts
-
2
votes1
answer58
viewsQ: Increment and decrement do not work in expected order
int main(){ int i=5; printf("%d%d%d%d%d",i++,i--,++i,--i,i); } output: 45555 Why this exit? I did not understand correctly the reason for this exit.…
-
-1
votes1
answer455
viewsQ: Scanf inside the printf
#include <stdio.h> #include <stdlib.h> int main() { int i; printf("digite um número %d",scanf("%d",&i)); } The following program only gives the result 1 and I do not understand why.…
casked jose machado 21