C
c.lang.myself
Last night, while making a linked list program following questions
cropped in my mind..
QUERY-1:
I know any variable declared as extern or in global scope is
initialized with zero by default. Does it also apply to pointers so
that a global pointer would be initilaized with NULL.
QUERY-2:
I know various assignment operator +=, -=,*= ,/= but if p is a
pointer than why p->=next is not valid. and we have to use p=p->next
QUERY-3:
I got following run time error in using scanf function. I am unable to
find with what is wrong in my scanf usage..
scanf:floating point format not linked abnormal program termination
thanks,
cropped in my mind..
QUERY-1:
I know any variable declared as extern or in global scope is
initialized with zero by default. Does it also apply to pointers so
that a global pointer would be initilaized with NULL.
QUERY-2:
I know various assignment operator +=, -=,*= ,/= but if p is a
pointer than why p->=next is not valid. and we have to use p=p->next
QUERY-3:
I got following run time error in using scanf function. I am unable to
find with what is wrong in my scanf usage..
scanf:floating point format not linked abnormal program termination
thanks,