Posts by Ricardo Ireno • 23 points
2 posts
-
0
votes2
answers71
viewsQ: Matrix in dynamic allocation with execution failure
Hello! The following code compiled, but shows error in execution: #include <stdlib.h> #include <stdio.h> #include <conio.h> typedef struct { char *nome; int valor; int peso; }…
-
1
votes1
answer594
viewsQ: C Language: Manipulating a vector of structs within functions
Hello, I created a struct: typedef struct { float valor; float peso; } objeto; And within the main() I’ve created a vector of these guys: objeto conjunto[50]; Then I need to swap one 'object' of…