Posts by Bruno sousa • 35 points
2 posts
-
0
votes2
answers51
viewsQ: How do I point (with pointer, of course) to a string, so I can then print it?
I’ll give you an example of how I’m doing but it’s wrong and I’d like someone to help me fix that mistake. #include <stdio.h> void main() { char *p; char nome[21], outronome[21]; scanf("%s",…
-
1
votes1
answer69
viewsQ: Doubt with C function
How do I get the variable I used to store value I read in the scanf, passed to the function I created? Ex: #include <stdio.h> int main(){ int a, b; scanf("%d %d", &a, &b); } int…