What is the difference between null pointer and void pointer
Answer Posted / govind
a void pointer is a special type of pointer of void and
denotes that it can point to any type of data type .NULL
pointer can take any pointer type , but do not point to any
valid reference or memory adderss.it is important to note
that a NULL pointer is different from a pointer that is
initialized.
| Is This Answer Correct ? | 19 Yes | 8 No |
Post New Answer View All Answers
Explain how can a program be made to print the name of a source file where an error occurs?
How can type-insensitive macros be created?
What is the purpose of & in scanf?
Explain enumerated types in c language?
Explain how are 16- and 32-bit numbers stored?
#define MAX(x,y) (x) >(y)?(x):(y) main() { inti=10,j=5,k=0; k= MAX(i++,++j); printf("%d..%d..%d",i,j,k); }
Explain what happens if you free a pointer twice?
show how link list can be used to repersent the following polynomial i) 5x+2
What is malloc calloc and realloc in c?
How can you check to see whether a symbol is defined?
a character or group of characters that defines a register,or a part of storage a) memory b) byte c) address d) linear list
Explain can static variables be declared in a header file?
How main function is called in c?
To print the pattern 1 2 3 4 5 10 17 18 19 6 15 24 25 20 7 14 23 22 21 8 13 12 11 10 9
p*=(++q)++*--p when p=q=1 while(q<=6)