Posts by Joao Marcos • 69 points
2 posts
-
-1
votes1
answer38
viewsA: How to duplicate a struct in "C"
As some changes need to be made, I will leave the code with comments before each change I made to get more explanatory. #include <stdio.h> // É preciso importar esta biblioteca para usar…
-
4
votes2
answers200
viewsA: getchar() command used several times
Your problem happens because you are not familiar with the program input. When you get something like a b c in fact your program reads as a\nb\nc and your program ends up getting c1 = 'a' c2 = '\n'…
canswered Joao Marcos 69