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 |
please tell me the logic for this C program : INPUT (string):ABCD OUTPUT :BCDA CDAB DABC
What is undefined behavior?
What are type modifiers in c?
Can a variable be both constant and volatile?
Find greatest number out of 10 number without using loop.
Why is it important to memset a variable, immediately after allocating memory to it ?
Is c a great language, or what?
What are qualifiers in c?
which is conditional construct a) if statement b) switch statement c) while/for d) goto
what is the difference between #include<stdio.h> and #include "stdio.h" ?
print out put like this form 1 2 3 4 5 6 3 5 7 9 11 8 12 16 20
What does a function declared as pascal do differently?