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 unions?
What is the role of && operator in a program code?
Can you please explain the scope of static variables?
int main() { Int n=20,i; For(i=0;i<=n;i--) { Printf(“-“); Return 0;
Where local variables are stored in c?
What is the difference between fread and fwrite function?
What is difference between far and near pointers?
Why #include is used in c language?
What is the meaning of ?
Is c programming hard?
Explain what does the format %10.2 mean when included in a printf statement?
What is storage class?
What are the 5 types of organizational structures?
What are preprocessor directives in c?
The performance of an operation in several steps with each step using the output of the preceding step a) recursion b) search c) call by value d) call by reference