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


Please Help Members By Posting Answers For Below Questions

What is a floating point in c?

604


When can a far pointer be used?

588


What are loops c?

616


What are the different types of constants?

640


What is const volatile variable in c?

577






What is self-referential structure in c programming?

660


What is the difference between if else and switchstatement

1312


Explain what are run-time errors?

610


how to execute a program using if else condition and the output should enter number and the number is odd only...

1654


What is pointer to pointer in c with example?

549


What is floating point constants?

689


How to declare a variable?

572


Explain what is the general form of a c program?

624


Explain how do you list files in a directory?

618


Difference between constant pointer and pointer to a constant.

613