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 does c value mean?
What is a null pointer assignment error? What are bus errors, memory faults, and core dumps?
What is the significance of scope resolution operator?
List the difference between a "copy constructor" and a "assignment operator"?
Explain the term printf() and scanf() used in c language?
how to build a exercise findig min number of e heap with list imlemented?
what are bit fields in c?
Differentiate fundamental data types and derived data types in C.
How can I invoke another program (a standalone executable, or an operating system command) from within a c program?
What are the types of assignment statements?
What is line in c preprocessor?
How many main () function we can have in a project?
What is nested structure in c?
Without Computer networks, Computers will be half the use. Comment.
Why do we use header files in c?