Friday, July 31, 2009

Why does my Turbo C compiler produce a fatal error whenever I use a pointer?

Need help.

Why does my Turbo C compiler produce a fatal error whenever I use a pointer?
change the memory module to huge while compile ur code. try simple codes like





int main()


{


int *p;


p = (int *) malloc (sizeof(int));


scanf("%d", %26amp;p);


printf("%d",*p);


}





u can find differ, i think...
Reply:U might be using the pointer wrongly.... post a sample code here..


No comments:

Post a Comment