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 |
When is a null pointer used?
How to convert decimal to binary in C using recursion??
What is enumerated data type in c?
why we shiuld use main keyword in C
What is the use of bitwise operator?
What is Function Pointer? Explain with example?
Draw a flowchart to produce a printed list of all the students over the age of 20 in a class .The input records contains the name and age of students. Assume a sentinel value of 99 for the age field of the trailer record
Define the scope of static variables.
Look at the Code: #include<string.h> void main() { char s1[]="abcd"; char s2[10]; char s3[]="efgh"; int i; clrscr(); i=strcmp(strcat(s3,ctrcpy(s2,s1))strcat(s3,"abcd")); printf("%d",i); } What will be the output? A)No output B) A Non Integer C)0 D) Garbage
void main(){ int a; a=1; while(a-->=1) while(a-->=0); printf("%d",a); }
What are the advantages of using Unions?
What does static mean in c?