what is the diference between pointer to the function and
function to the pointer?
Answers were Sorted based on User's Feedback
I am sorry.
Please explain with small example for this question?
| Is This Answer Correct ? | 1 Yes | 0 No |
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 |
What are 'near' and 'far' pointers?
Write the test cases for checking a variable having value in range -10.0 to +10.0?
What is meant by type specifiers?
write a program that will open the file, count the number of occurences of each word in the the complete works of shakespeare. You will then tabulate this information in another file.
How can I open a file so that other programs can update it at the same time?
What is the difference between arrays and pointers?
What is the difference function call by value & function call by reference?
the factorial of non-negative integer n is written n! and is defined as follows: n!=n*(n-1)*(n-2)........1(for values of n greater than or equal to 1 and n!=1(for n=0) Perform the following 1.write a c program that reads a non-negative integer and computes and prints its factorial. 2. write a C program that estimates the value of the mathematical constant e by using the formula: e=1+1/!+1/2!+1/3!+.... 3. write a c program the computes the value ex by using the formula ex=1+x/1!+xsquare/2!+xcube/3!+....
Write a program that will read the input of any number of digits n in a row of shafh showing the breakdown of the printing and printing figures by the recursive function.
What is 1f in c?
#include<stdio.h> main() { int a=1; int b=0; b=++a + ++a; printf("%d %d",a,b); }
What should malloc(0) do?