Posts by LucaS SA • 23 points
4 posts
-
0
votes1
answer39
viewsA: Merge static lists in C
I thank everyone who viewed it. My mistake is in the repetition of the lst_intercalar function. As I fill two static lists, both addresses ranging from 0 to 9(10 elements), within the function, only…
-
0
votes1
answer39
viewsQ: Merge static lists in C
#include<stdio.h> #include<stdlib.h> #define tam 10 #define TAM2 20 typedef int Apontador; typedef struct{ int item; }Elemento; typedef struct{ Elemento elemento[tam]; Elemento…
-
0
votes1
answer40
viewsQ: How to pass string to an insert function
#include<stdio.h> #include<stdlib.h> #include<string.h> struct lista{ char nome[20]; int idade; struct lista* prox; }; typedef struct lista Lista; Lista* lst_cria(){ return NULL; }…
-
-1
votes1
answer46
viewsQ: Error in C Stack implementation
I am typing the code that is presented in a book and compiling gradually. Mistakes happen where they are "//???????????". Another detail, in the statement of the structure, where we see *Stack, in…