Posts by Rodgger Bruno • 74 points
3 posts
-
3
votes2
answers240
viewsA: String pointer does not work as expected
char *t; char pointer, points to a place in memory. t = texto; that means t gets the first text index[0] the same way t goes up to ' 0' (ending character) *t = 'oi'; this will give an error, the…
-
1
votes2
answers424
viewsA: Compare char in a matrix function
if(matriz[0][0] && matriz[0][1] && matriz[0][2] == o) matrix[0][0] verifies that returns null matrix[0][1] verifies that returns null matrix[0][2] == Should not be matrix[0][2] ='O';…
-
2
votes1
answer317
viewsA: Splitting project into multiple headers causes error: Dereferencing Pointer to incomplete type
main is calling lib1.h and trying to compile typedef struct item1 ITEM1; But lib1.c has not yet been called to declare the structure. The lib1.c file will still be called for compilation. That is,…