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 meant by type casting?
Is c language still used?
Can one function call another?
What does volatile do?
illustrate the use of address operator and dereferencing operator with the help of a program guys plzzz help for this question
Can we use visual studio for c?
How do you convert strings to numbers in C?
What is the concatenation operator?
What does a derived class inherit from a base class a) Only the Public members of the base class b) Only the Protected members of the base class c) Both the Public and the Protected members of the base class d) .c file
What are different types of operators?
any "C" function by default returns an a) int value b) float value c) char value d) a & b
What are structural members?
How can I sort more data than will fit in memory?
What is the difference between struct and union in C?
What is use of #include in c?