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?

Answers were Sorted based on User's Feedback



24.what is a void pointer? 25.why arithmetic operation can’t be performed on a void pointer? 26..

Answer / 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

24.what is a void pointer? 25.why arithmetic operation can’t be performed on a void pointer? 26..

Answer / abhijit

http://www.c4learn.com/illegal-arithmetic-operations-with-pointer.html

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More C Interview Questions

Write a program to show the workingof auto variable.

2 Answers   Infotech,


C program to find all possible outcomes of a dice?

0 Answers  


What is the main difference between calloc () and malloc ()?

0 Answers  


What are local static variables? How can you use them?

0 Answers  


main() { int a = 65; printf(“%d %o %x”,a,a,a); } Output 65 101 41 Please explain me.How it is coming like that?

3 Answers   Excel,






What are the storage classes in C?

0 Answers  


how to print the character with maximum occurence and print that number of occurence too in a string given ?

0 Answers   Microsoft,


What do you mean by Recursion Function?

0 Answers   Hexaware,


to get a line of text and count the number of vowels in it

2 Answers  


What is identifier in c?

0 Answers  


What is pointer in c?

0 Answers  


What should be keep precautions while using the recursion method?

1 Answers  


Categories