24.what is a void pointer?
25.why arithmetic operation can’t be performed on a void
pointer?
26.differentiate between const char *a; char *const a;
and char const *a;
27.compare array with pointer?
28.what is a NULL pointer?
29.what does ‘segmentation violation’ mean?
30.what does ‘Bus Error’ mean?
31.Define function pointers?
32.How do you initialize function pointers? Give an example?
33.where can function pointers be used?
Answer Posted / fakkad
24: void pointer can point any type of data.
31: int (*fun)(int) //pointer to a function which takes an
int as an argument and returns an int;
32: int (*fun)(int) = NULL; // initializing with NULL
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
What are the 4 types of functions?
How is actual parameter different from the formal parameter?
Describe how arrays can be passed to a user defined function
What is a protocol in c?
Is there a way to compare two structure variables?
How can you convert integers to binary or hexadecimal?
Explain the bubble sort algorithm.
What is the difference between array and structure in c?
How can variables be characterized?
Is it better to use malloc() or calloc()?
Differentiate between calloc and malloc.
What is getche() function?
Why is c called "mother" language?
Do you know what are bitwise shift operators in c programming?
the portion of a computer program within which the definition of the variable remains unchanged a) mode b) module c) scope d) none