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
How to explain the final year project as a fresher please answer with sample project
How to write c functions that modify head pointer of a linked list?
Without Computer networks, Computers will be half the use. Comment.
What will be the outcome of the following conditional statement if the value of variable s is 10?
Can you please explain the difference between exit() and _exit() function?
Why is it that not all header files are declared in every C program?
What is the use of getchar() function?
Can you return null in c?
How can I check whether a file exists? I want to warn the user if a requested input file is missing.
What is string function c?
How can I change their mode to binary?
Explain what is dynamic data structure?
I need testPalindrome and removeSpace
#include
What is the purpose of ftell?
Where in memory are my variables stored?