Posts by Raul Lima • 23 points
6 posts
-
0
votes1
answer88
viewsA: Printing garbage in matrix string in C
code: #include <stdio.h> #include <string.h> #define N 2 #define M 5 #define LIM 10 int main(){ int i,j; char quadrilha[N][M][LIM]; char transQuadrilha[M][N][LIM]; //prenximento do vetor…
-
-1
votes1
answer88
viewsQ: Printing garbage in matrix string in C
Code Issue: Create a program that receives from user two vectors of size 5, whose elements are the names of persons (maximum size 10) who will dance in a party gang Junina. After this, the program…
-
0
votes1
answer253
viewsA: Difficulties with quickSort algorithm in C
Code tests, below some comment of the unnecessary parts of the code: #include <stdio.h> #include <stdlib.h> void troca(int x,int y){ int aux; aux = x; x = y; y = aux; } int partition(int…
-
-1
votes1
answer193
viewsQ: Difficulty in C: read two functions at the same time[Completed]
I would like to know how to perform two functions at the same time in c Being one while and the other a scanf: #include <stdio.h> #include <unistd.h> #include <stdlib.h> #include…
-
0
votes2
answers86
viewsQ: String problem in C, term exclusion in string, through string comparison
I wrote a code that excluded the similar term in both strings, but it does not print the result of the text by taking the second term, it only removes the first term from the first string. "Create a…
-
2
votes2
answers109
viewsQ: C Programming - Two-Dimensional Matrices
**Matrix Print Error.Cannot generate matrix lines. Note, without using another library** #include <stdio.h> int main() { int nlinhas,mcolunas; int matriz[nlinhas][mcolunas]; int n,m;//n…