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 program?
How can you tell whether two strings are the same?
What is the use of putchar function?
What are the advantages of using new operator as compared to the function malloc ()?
What is linear search?
what is ur strangth & weekness
Explain what is the difference between text files and binary files?
What are the 5 elements of structure?
Write a program to swap two numbers without using third variable?
What is include directive in c?
Tell us something about keyword 'auto'.
What is modifier & how many types of modifiers available in c?
Study the following C program :call_me (myvar)int myvar;{ myvar +- 5; }main(){int myvar;myvar = 3;call_me(myvar);printf("%d ",myvar);What will be printed a) 3 b) 5 c) 8 d) symbol
What is the difference between functions getch() and getche()?
Write a simple code fragment that will check if a number is positive or negative.