Posts by Gustavo F • 57 points
3 posts
-
1
votes1
answer72
viewsQ: How does access to struct by pointer pointer and by a copy of the pointer work?
In push1() I passed by parameter the memory address, on push2() I passed a copy of the pointer, but I didn’t understand the difference how each one accesses the struct? struct Node { int data;…
-
1
votes1
answer63
viewsQ: Variables bursting
The variables cont_setosa, cont_versicolor, cont_virginica are breaking at the end of the code, why?? How to fix this?? Before Ifs the variables are normal, but after them, there is this change...…
-
3
votes1
answer67
viewsQ: What kind of data entry is this? scanf("%m[ ]
I found this in a C program: int k; char* nometreino; char* nometeste; FILE* arquitreino; FILE* arquiteste; scanf("%m[^ ] %m[^ ] %d", &nometreino, &nometeste, &k); arquitreino =…