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

what is a far pointer

12 Answers   ABB, DRDO, ITI, Maruti Suzuki, Steel Plant, TCS, Toyota, Vivo Mobiles,


What are preprocessor directives?

1 Answers  


Is it acceptable to declare/define a variable in a c header?

0 Answers  


What is c language in simple words?

0 Answers  


Which of the following about the C comments is incorrect ? a.commentscan go over multiple lines b.comments can start any where in the line c.a line can contain comments with out any language statements d.comments can occur within comments

6 Answers   TCS,






When reallocating memory if any other pointers point into the same piece of memory do you have to readjust these other pointers or do they get readjusted automatically?

0 Answers   TISL,


Write the Program to reverse a string using pointers.

0 Answers   InterGraph,


Write code for initializing one dimentional and two dimentional array in a C Program?

5 Answers   Deshaw, Edutech, GMD,


write a program that print itself even if the source file is deleted?

2 Answers  


Explain what are the standard predefined macros?

0 Answers  


A function can make the value of a variable available to another by a) declaring the variable as global variable b) Passing the variable as a parameter to the second function c) Either of the two methods in (A) and (B) d) binary stream

0 Answers  


What is the explanation for modular programming?

0 Answers  


Categories