when you declare pointers you have to repeat '*'
for example, int* a, b; now a's type is int* and b's type is int. int* a, *b; both a and b are pointers.
hello..well of course it does not compile...try to think simple..to open a file,u need one pointer.a FILE pointer exactly..now to open 2 files u need ??? 2 FILE pointers..no??
So as you already now the second is correct..but in the first one the declaration is incorrect.
Why?..well because to declare 2 pointers,of any kind(int, float,FILE) u need to write:
1 2 3
int *a,*b; //or
float *a,*g; //or in you're case
FILE *c,*d;
And as a "tip" try to don't write like this FILE* c;
but write FILE *c
"stick" together the '*' and the name of the variable,because(for example) the variable c and *c are NOT the same. the Wildcard Operator (*) is part of the pointer;and that way you don't get confused..hope it helps :)
sry for repeating what hamsterman said ..but i was typing when he posted and i did not see..but sometimes 2 advices are better that one
That to be honnest i don't now yet :).i am a beginner like you..but if you work with files u need pointers..try to read more about files.u can find a lot of things in the reference menu.