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();
}
Answer Posted / 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 |
Post New Answer View All Answers
What is the benefit of using #define to declare a constant?
What is a #include preprocessor?
What is a wrapper function in c?
Why do we use header files in c?
How does free() know explain how much memory to release?
What are derived data types in c?
A character flag or control mechanism that delineates one data item from another a) variable b) constant c) delimiter d) call by reference
please can any one suggest me best useful video tutorials on c i am science graduate.please help me.u can email me to sas29@in.com
if a is an integer variable, a=5/2; will return a value a) 2.5 b) 3 c) 2 d) 0
What does 3 mean in texting?
Can a void pointer point to a function?
What is an lvalue?
What is structure in c explain with example?
Explain high-order and low-order bytes.
List some of the dynamic data structures in C?