Posts by João Pedro Alves • 46 points
3 posts
-
2
votes4
answers65
viewsA: Beginner program error in C
Besides this problem with operators && and ||, there are other problems as well. By calling the printf you are passing the address operator &, so it shows the address of the variable in…
canswered João Pedro Alves 46 -
0
votes2
answers1169
viewsA: Check the occurrence of each letter in a string - C
void verifiRepetition(char [],int); void check Existence(char [],char, int *); int main(){ int const quantodadeElementos = 50; char vetorPalavra[quantodadeElementos]; printf("Informe uma palavra:…
canswered João Pedro Alves 46 -
1
votes2
answers98
viewsA: Values in C do not return what is expected
This occurs because of these two lines int m = ++n; and int x = a++; that besides m and x are receiving the value n and a, the value of n and a are being added to 1 more. Then the value of n and a…