Posts by Hugo • 13 points
3 posts
-
1
votes3
answers264
viewsA: Source code does not compile
In the scanf, it is necessary to use the "&": scanf("%f", &parede); The use of "if" is also not necessary, as you are assigning a value to the variable "liters", and not creating a…
-
0
votes1
answer78
viewsA: How to pass a matrix that has been allocated to a function in C?
Good afternoon, I used a matrix with lines and columns already defined, I hope I have correctly interpreted the doubt and that the code is understandable. int valor_matriz(int mat[][5]); int main(){…
-
0
votes1
answer41
viewsQ: Problem to enter Switch
Good afternoon, when running the program below, after typing the third note, the program ends without typing the letter needed to enter the switch. I tested with "i" getting whole number and the…