Posts by fchaves • 13 points
4 posts
-
0
votes2
answers69
viewsA: I need to know where in that code is my mistake - MATRIX C
if(turma2[i][j] == turma2[i][j]){ // Se 8,5 é igual a 8,5 turma2[i][j] = turma2[i][j]+1; // Soma 8,5+1 e sobrepõem o valor de turma2[i][j] notaMaisFrequente = turma2[i][j]; // notaMaisFrequente =…
-
0
votes2
answers123
viewsA: Partitioning in C
Something like that: #include <stdio.h> int main() { int n, p; printf("Tamanho do vetor: "); scanf("%d",&n); printf("Posicao do pivo: "); scanf("%d",&p); int vetor[n]; printf("Digite…
-
0
votes2
answers123
viewsA: Partitioning in C
Try positioning the partitioning() function before the main() function. The way you did it has to declare the function to use it. If you write the function before main() no need to declare. #include…
-
1
votes1
answer55
viewsQ: Variable changes value without apparent reason in C
I’m writing a C code to solve the problem suggested in the Facebook post: https://www.facebook.com/groups/414761988665865/permalink/1390954547713266/ Can someone explain to me why you changed the…