Posts by Henrique Hott • 23 points
3 posts
-
0
votes0
answers20
viewsQ: Array sorting in C -- Error in float version
For some reason I don’t know, when I change the type of my int function to float it just doesn’t work properly: void organizeArray(float array[], int size){ int aux; for (int i = 1; i < size;…
-
0
votes1
answer209
viewsQ: Function that transposes a matrix, using passage by reference
I need to do a function that by passing a matrizA by reference, the matrizA would turn the transpose of the matrizA. I tried using an auxiliary matrix, only it’s not working. It has to be a 5x5…
-
1
votes2
answers200
viewsQ: getchar() command used several times
#include <stdio.h> #include <stdlib.h> int main(){ char c1, c2, c3; printf("Digite um caractere: \n"); c1 = getchar(); printf("Digite um caractere: \n"); c2 = getchar(); printf("Digite…
casked Henrique Hott 23