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 is a floating point in c?
When can a far pointer be used?
What are loops c?
What are the different types of constants?
What is const volatile variable in c?
What is self-referential structure in c programming?
What is the difference between if else and switchstatement
Explain what are run-time errors?
how to execute a program using if else condition and the output should enter number and the number is odd only...
What is pointer to pointer in c with example?
What is floating point constants?
How to declare a variable?
Explain what is the general form of a c program?
Explain how do you list files in a directory?
Difference between constant pointer and pointer to a constant.