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
Wt are the Buses in C Language
What is the meaning of typedef struct in c?
What is the role of && operator in a program code?
how to create duplicate link list using C???
What is a const pointer in c?
What is selection sort in c?
Add Two Numbers Without Using the Addition Operator
What would the following code segment printint k = 8;docout << "k = " << k << " ";while k++ < 5; a) 13 b) 5 c) 8 d) pointers
c program to compute AREA under integral
What is identifiers in c with examples?
What are enumerated types?
The statement, int(*x[]) () what does in indicate?
Explain how many levels deep can include files be nested?
how to solve "unable to open stdio.h and conio.h header files in windows 7 by using Dos-box software
What is masking?