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
What is the sizeof () operator?
Explain what are the __date__ and __time__ preprocessor commands?
What is a macro?
What is a union?
Explain the advantages of using macro in c language?
Explain about the constants which help in debugging?
Describe the difference between = and == symbols in c programming?
What is function in c with example?
What is zero based addressing?
Design a program which assigns values to the array temperature. The program should then display the array with appropriate column and row headings.
Explain About fork()?
What is exit() function?
What are register variables in c?
Explain what is the benefit of using enum to declare a constant?
What are the different types of pointers used in c language?