How can I call a function, given its name as a string?
Answer Posted / neeraj
#include<stdio.h>
#define string sum1()
int main(){
int k=string;
printf("%d",k);
getch();
return 0;
}
sum1()
{
int c=6;
int d=7;
return(c+d);
}
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
I just typed in this program, and it is acting strangely. Can you see anything wrong with it?
Is main is user defined function?
What is function definition in c?
Explain built-in function?
What is a char c?
Why we use conio h in c?
Explain is it valid to address one element beyond the end of an array?
Explain spaghetti programming?
What is unsigned int in c?
What is a stream water?
What is operator precedence?
Explain how do you declare an array that will hold more than 64kb of data?
please explain clearly about execution of c program in detail,in which stage are the printf sacnf getting into exeecutable code
What is unary operator?
What does sizeof return c?