Posts by Yuri Ventura • 27 points
3 posts
-
0
votes1
answer33
viewsA: Vector exchange of chars with problem
Your problem consists of a simple assignment error in the exchange() function. In the first go inside the function you made c[i] = temp1[i]; when in fact you should do temp1[i] = c[i]; At first you…
-
0
votes1
answer33
viewsA: Problems in C file creation
I believe the problem is the fact that you closed the file inside the is, then when it runs for the second time it is no longer possible to write.
-
-5
votes2
answers63
viewsA: Infinity C loop array
Here’s what I’d do #include <stdio.h> #include <conio.h> int main(void) { int n[30], i = 0, j; //lendo os valores for( ; ; ) { printf("Digite um numero inteiro: "); scanf("%d",…