Posts by Cl2727 • 69 points
9 posts
-
-2
votes1
answer35
viewsQ: Const int instead of number in the vector in C
This exercise required to store 4 grades of 4 students and then media put on a vector and present, well, I declared the matrix and instead of typing [4][4] I put two variables const int worth 4, and…
-
0
votes1
answer60
viewsQ: Variable in loops and function in C
The variables in function and loops do not keep? Because I thought it remained in the loop, different from the function that is forgotten #include<stdio.h> int x = 0; int main(){ int i, x = 1;…
-
1
votes2
answers97
viewsQ: Match pointers in C
In this code I picked up because I was unable to think about the exercise, in line 3 of the code the program asks for the min scanf, where min is a pointer, and min receives a scanf value, but the…
-
1
votes3
answers68
viewsQ: Passage by reference in C
My IDE is giving error in line: float CalculaHora(horas,minutos,segundos,&conversao); It indicates that you need a parenthesis before the operator &: #include <stdio.h> int main() {…
-
0
votes1
answer39
viewsQ: Unknown terms pointer in C
The first output of the printf is coming out a strange number, I think %p would be the address of the pointer would not be, the result gave 0060FEFC? in the second output *p + 2 = i + 2 I understand…
-
-1
votes2
answers64
viewsQ: Increment does not work as expected
I took this exercise and put it to compile, but it’s going wrong I think because the values I see would be 5 and 9, but it’s going 6 and 8, I believe the IDE is not reading correctly. #include…
-
0
votes2
answers28
viewsQ: Char in function is not recognized in c
I am unable to make the variable char be comparable and validated, the IDE says that the variable 'a' was undeclared, some could help me please Do a function that receives the 3 notes of a student…
-
1
votes1
answer54
viewsQ: Function does not respond correctly
Trying to calculate the volume of the sphere returns a strange number like -1.#QNAN0. #include<stdio.h> #include<stdlib.h> #include <math.h> float pi = 3.14; float param(int x){…
-
-2
votes4
answers142
viewsQ: Variable value changes in main function
When I declare a function and put the parameter to receive a variable of the integer type, for example, within the main function when I declare the function int param(int x); and then I call the…