Posts by Fernanda • 121 points
3 posts
-
7
votes2
answers212
viewsQ: Pointer to struct
I was studying pointers to struct, and I saw that it has two ways to use. can be: (*ponteiro).variavel Or: ponteiro->variavel According to what I read, when we put *ponteiro.variavel, because of…
-
2
votes1
answer548
viewsQ: Stack Exercise - String with Trash
Write an algorithm, using a Stack, that inverts the letters of each word of a text finished by a dot (.) preserving the order of words. By example, given the text: THIS EXERCISE IS VERY EASY. The…
-
1
votes3
answers1572
viewsQ: How to read only whole numbers in the scanf?
For example, in the code: int main() { int x; scanf("%d", &x); printf("%d", x); } If I type "A", it automatically converts to whole or just closes the program (both happened to me). then, in…