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 |
What is the difference between scanf and fscanf?
Linked lists -- can you tell me how to check whether a linked list is circular?
When we use void main and int main?
#include<stdio.h> int main(){ int a[]={1,2,3,5,1}; int *ptr=a+4; int y=ptr-a; printf("%d",y); }
Why c is procedure oriented?
What 'lex' does?
1. Write a program to reverse every second word in a given sentence.
regarding the scope of the varibles;identify the incorrect statement: a.automatic variables are automatically initialised to 0 b.static variables are are automatically initialised to 0 c.the address of a register variable is not accessiable d.static variables cannot be initialised with any expression
What is the difference between array and pointer?
How can you call a function, given its name as a string?
input may any number except 1,output will always 1.. conditions only one variable should be declare,don't use operators,expressions,array,structure
Where are c variables stored in memory?