Posts by Matheus • 29 points
2 posts
-
-2
votes1
answer604
viewsQ: Separate a single string in an array of strings
In this code I am trying to make a string read and then put each word separated by space in an array of strings. I saw that in some cases the Strtok function is used, but since I intend to use these…
-
3
votes1
answer89
viewsQ: Array bug when passing size 4
I’m asking a question that asks the following: So I made this algorithm: #include <stdio.h> #include <stdlib.h> int main() { int i, j, x=0; int vetor[x]; printf ("Digite o tamanho do…