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 header files do I need in order to define the standard library functions I use?
Describe the order of precedence with regards to operators in C.
Where static variables are stored in c?
How is null defined in c?
What is a lvalue
Tell me with an example the self-referential structure?
What is the significance of scope resolution operator?
What is the difference between abs() and fabs() functions?
Explain what will be the outcome of the following conditional statement if the value of variable s is 10?
A c program to display count values from 0 to 100 and flash each digit for a secong.reset the counter after it reaches 100.use for loop,. pls guys hepl me.. :(
Explain how are 16- and 32-bit numbers stored?
ATM machine and railway reservation class/object diagram
What are the 5 types of organizational structures?
What is pass by reference in c?
Write a simple code fragment that will check if a number is positive or negative.