Hi everyone:
I wonder why when i use gets() function in statement generates an error, but when used with a pointer: *ptr it works fine:
" if (gets(input) != NULL) " -----generate an error
" if (*(ptr=gets(input) !=NULL)" -----works fine
what exactly does the pointer do here exactly??
Hopfully all those experienced programmers can answer this question....
ty.



LinkBack URL
About LinkBacks



