I don't know who taught you to read from a file like that but it's just mental.
On another note "integer" is a char array and you are printing its address. Google how to printf a char array in C.
Also, int main(VOIDZ????) Hahaha.
I don't know who taught you to read from a file like that but it's just mental.
On another note "integer" is a char array and you are printing its address. Google how to printf a char array in C.
Also, int main(VOIDZ????) Hahaha.
1. Get rid of gets(). Never ever ever use it again. Replace it with fgets() and use that instead.
2. Get rid of void main and replace it with int main(void) and return 0 at the end of the function.
3. Get rid of conio.h and other antiquated DOS crap headers.
4. Don't cast the return value of malloc, even if you always always always make sure that stdlib.h is included.