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 are the different data types in C?
how to write optimum code to divide a 50 digit number with a 25 digit number??
what is pointer ? what is the use of pointer?
What is the use of getch ()?
How can I open a file so that other programs can update it at the same time?
Write a program that takes three variables(a,b,c) in as separate parameters and rotates the values stored so that value a goes to b,b,to c and c to a
please explain clearly about execution of c program in detail,in which stage are the printf sacnf getting into exeecutable code
write a program for fibonaci series by using while loop in c?
What is scope and lifetime of a variable in c?
What is the output of the program given below #include<stdio.h> main() { char i=0; for(;i>=0;i++) ; printf("%d\n",i); }
21 Answers ADITI, Student, TCS,
To what value do nonglobal variables default? 1) auto 2) register 3) static
What is a shell structure examples?