A.C
func()
{
pritnf(" in fuction %d",MACRO);
}
MAIN.c
testfunc()
{
#define MACRO 10
printf("in test function %d", MACRO);
}
main()
{
printf("in main %d",MACRO);
func();
testfunc();
getch();
}
Answers were Sorted based on User's Feedback
Answer / modassir
The error is for the line where we try to call func()
where we try to print macro through printf, as because
macro is not define there.
| Is This Answer Correct ? | 2 Yes | 1 No |
how to find out the biggest element (or any other operation) in an array which is dynamic. User need not to mention the array size while executing.
what is the function of void main()?
What is #include conio h?
declare afunction pointer to int printf(char *)?
What is non linear data structure in c?
what is the use of fflush() function?
i have to apply for rbi before that i need to know the the syllabus for the entrance questions. whethet it may be aps or techinical
What is the explanation for cyclic nature of data types in c?
in linking some of os executables are linking name some of them
If null and 0 are equivalent as null pointer constants, which should I use?
How can I avoid the abort, retry, fail messages?
why we are using float in C