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
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 |
Answer / abhijit
http://www.c4learn.com/illegal-arithmetic-operations-with-pointer.html
| Is This Answer Correct ? | 1 Yes | 0 No |
What does 2n 4c mean?
main() { int a=0; if(a=0) printf("Ramco Systems\n"); printf("India\n"); } output?
enum DAY { sunday, monday, tuesday }; enum EDAYS { friday, saturday, sunday }; void main() { int i =0; if( i == sunday) { printf("%d",i); } } what would be the output?
What is far pointer in c?
how can we print hellow world programme without using semicolon
What is the output for the program given below typedef enum grade{GOOD,BAD,WORST,}BAD; main() { BAD g1; g1=1; printf("%d",g1); }
a function gets called when the function name is followed by a a) semicolon (;) b) period(.) c) ! d) none of the above
Explain the importance and use of each component of this string: Foo.Bar, Version=2.0.205.0, Culture=neutral, PublicKeyToken=593777ae2d274679d
What compilation do?
7 Answers Geometric Software, Infosys,
How do you initialize pointer variables?
Is return a keyword in c?
What is wrong with this statement? Myname = 'robin';