-3
You can use a trick to calculate the size.
If your vector is integer, you can use the following code snippet to calculate the size.
int length = (int) sizeof(array)/sizeof(int);
-3
0
You can use a trick to calculate the size.
If your vector is integer, you can use the following code snippet to calculate the size.
int length = (int) sizeof(array)/sizeof(int);
Browser other questions tagged c
You are not signed in. Login or sign up in order to post.
Welcome to Stack Overflow. Please, whenever you ask a question put your code inside the question, not a photo of the code.
– Lucas Módolo
Clicking here, for more information.
– Lucas Módolo
You make a
while (notas != 0)
, but the variablenotas
nor has it been initialized with any value; you do thefor
whilecont != notas
, butnotas
has no value; you domedia
receivenotas + notas
, What’s the point of that, doubling the grade? Anyway, I could even reply with a code that does what it seems you need, but it became clear to me that you still don’t understand the code you wrote, so I recommend you see what a table test and try to apply it.– Woss