declare afunction pointer to int printf(char *)?
Answer Posted / 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 View All Answers
What is "Hungarian Notation"?
Can a variable be both constant and volatile?
How main function is called in c?
Where local variables are stored in c?
What is a sequential access file?
What is scope rule in c?
What happens if a header file is included twice?
What are the features of c language?
The % symbol has a special use in a printf statement. Explain how would you place this character as part of the output on the screen?
Explain what is the concatenation operator?
Are local variables initialized to zero by default in c?
What is self-referential structure in c programming?
How to set file pointer to beginning c?
Create a simple code fragment that will swap the values of two variables num1 and num2.
What is the equivalent code of the following statement in WHILE LOOP format?