Posts by Lucas Mello • 1 point
2 posts
-
0
votes1
answer24
viewsA: How to pass string to struct within the function
I did, instead of using *(dados[*(cont)+1].fname) = fname; *(dados[*(cont)+1].lname) = lname; *(dados[*(cont)+1].phone) = phone; I used strcpy(dados[*(cont)+1].fname, fname);…
-
-1
votes1
answer24
viewsQ: How to pass string to struct within the function
Hi, I have to do a CRUD in C, but I have a problem, I have to pass 3 strings to a function but I have no idea how to do, I’ve tried everything... #include <stdio.h> #include <stdlib.h>…