declare afunction pointer to int printf(char *)?



declare afunction pointer to int printf(char *)?..

Answer / sunil singh

the function pointer to an int printf(char *) will be:

int (*ptr)(char*);

Now you can assign the function address to the pointer to a
function.

ptr = printf;

Is This Answer Correct ?    12 Yes 1 No

Post New Answer

More C Interview Questions

Can a pointer be volatile in c?

0 Answers  


Expand the following LKB BKL FFG

0 Answers  


If we give two names then this displays the connection between the two people. It is nothing but flames game

1 Answers  


Explain the difference between malloc() and calloc() in c?

0 Answers  


Given an array of numbers, except for one number all the others occur twice. Give an algorithm to find that number which occurs only once in the array.

6 Answers  


in C-programming language without using printf statement can we get output r not ? if yes how and if no also how ?

11 Answers   IBM,


Where does the name "C" come from, anyway?

0 Answers   Celstream,


prog for 1st five prime numbers in 2^x - 1

0 Answers  


Write a Program to accept different goods with the number, price and date of purchase and display them

0 Answers   HDFC,


increment operateor (++)and decrament(--) #include<stdio.h> #inclide<conio.h> main() { int x=15; while(x!=0) scanf("%d",&x); {

2 Answers   HCL, Syntel, TCS,


Give a method to count the number of ones in a 32 bit number?

4 Answers  


What is volatile variable in c?

0 Answers  


Categories