Posts by devair1010 • 41 points
5 posts
-
0
votes1
answer37
viewsA: fopen returning NULL
@Ramiro I believe that the eerro in your code is by syntax error , because it was missing the character & in scanf’s , and so the compiler finishes the execution of the program , and another…
-
0
votes1
answer44
viewsA: How to write a function that returns appropriate values of a date (day, month and year) so that these are assigned to struct-type variables?
Darlam Alves , no while the values are not lost , no , and what happens in that your code is that you put special characters between the type specifiers in the scanf , and this causes errors in…
-
1
votes1
answer52
viewsA: I want to know why the first gap of the is does not perform a second time
some errors, you used the same variable in the two loops, so to end the second loop i will have the value 2, and the condition of the first for will be satisfied and it ends. #include…
canswered devair1010 41 -
0
votes1
answer23
viewsA: Vector of struct with comparison
#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <string.h> #include <locale.h> #define tam 3 typedef struct { char nome[50]; int idade ; } pessoa ; int main() {…
-
0
votes1
answer47
viewsA: Invert string message in c
Do you just want to invert a string, or 20 string’s ? , because in this code you put the scanf to pick up a string that is in a vector of 20 string’s and that can have a maximum of 20 characters…
canswered devair1010 41