Posts by Eisenheim • 146 points
4 posts
-
3
votes1
answer68
viewsA: Close file in C
Every file must be closed for the release of resources when it is no longer necessary, for this must use the function fclose, stated in the header stdio.h. Being the prototype: int fclose (FILE *…
-
3
votes1
answer81
viewsA: What’s the malloc for?
First of all malloc is a function introduced in the language C, it serves for dynamic memory allocation in the region known as memory heap, a continuous region of spaces in the main memory that the…
-
3
votes1
answer49
viewsA: How to access, within a function, the member of a dynamically allocated structure?
The error is in the pointer type variable vetor_pessoas inside main(). Even after function call cadastra_pessoa() the pointer vetor_pessoas continues to point to null. You should make this pointer…
-
1
votes1
answer33
viewsA: Average calculation returning Undefined when no Arguments is passed
This code will return two references to undefined. The first reference being the call of the immediate function declared in line #1. The second reference being the call of the nested function:…