what is the diference between pointer to the function and
function to the pointer?

Answers were Sorted based on User's Feedback



what is the diference between pointer to the function and function to the pointer?..

Answer / manojkumar

I am sorry.
Please explain with small example for this question?

Is This Answer Correct ?    1 Yes 0 No

what is the diference between pointer to the function and function to the pointer?..

Answer / selvakumar vedhachalam

There is no difference between poiter to function and
function pointer. It may be two different of saying the
same thing.

Pointer always points to a address.
Function pointer alwyas points to a address of a function.

Example:
void (*fn_ptr)(int, int);

Is This Answer Correct ?    2 Yes 5 No

Post New Answer

More C Interview Questions

int x=5; printf("%d%d%d",x,x<<2,x>>2);

2 Answers   TANCET,


my name is nani i completed my b-tech in hyd now i want go for interveiw but i dont know the process of software field interveiws plz help me anyone how many rouds there n what rounds plz plz plz help me n where i can get these details

2 Answers  


What is meant by type casting?

1 Answers  


List some applications of c programming language?

1 Answers  


How to write a C program to determine the smallest among three nos using conditional operator?

2 Answers   Google,


Give basis knowledge of web designing ...

1 Answers   HCL,


If an old women's age is the same as her three grand daughters i,mean the number of days old child=the no of weeks old child=no of months old child .The total yrs of all these ppl is 114 yrs...then how old is the old woman? the yr has 365 days..and 30 days each month.

1 Answers   TCS,


Question 1: You want to conduct a survey within your classroom, on the quality of canteen’s food. You ask each of your class fellows to rank the quality of food between 1 and 5 (1 representing excellent quality and 5 representing worst quality). During the survey, you make a list containing the roll# of student and the opinion given by that student. The list can be as follow Roll # Opinion 234 1 235 1 236 5 237 1 238 2 239 3 240 5 241 5 242 1 To get the results of the survey, you need to determine the frequency of each opinion value. The frequency of an opinion is determined by counting the number of students giving that opinion. For example, for the above list the frequency of opinion value 1 is 4 and frequency of opinion value 4 is 0. After getting the frequency of each opinion, you can easily judge about the quality of the food by seeing through the frequency of each opinion. You need to develop a program to calculate the results of this survey. The program inputs the opinion of 50 students and counts the frequency of each opinion. It then displays a report showing the frequency of each opinion. Sample output: Opinion Frequency Remarks 1 5 Excellent 2 10 Good 3 15 Normal 4 10 Bad 5 10 Really bad

1 Answers  


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?

0 Answers  


What is the usage of the pointer in c?

1 Answers  


Explain setjmp()?

1 Answers  


Write a program to reverse a given number in c?

1 Answers  


Categories