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 is the different bitween abap and abap-hr?
What are the salient features of c languages?
Explain what is the benefit of using an enum rather than a #define constant?
What does %d do?
number of times a digit is present in a number
#include<stdio.h> main(0 { printf("\n %d %d %d",sizeof(3),sizeof("3"),sizeof(3)); }
What are the 5 organizational structures?
write a c code "if you give a any decimal number then print that number in english alphabet"? ex: i/p: 552 o/p: five hundred fifty two ...
What is else if ladder?
how to build a exercise findig min number of e heap with list imlemented?
What is property type c?
we called a function and passed something do it we have always passed the "values" of variables to the called function. such functions calles are called a) calls by reference b) calls by value c) calls by zero d) none of the above