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 |
What is zero based addressing?
Differentiate fundamental data types and derived data types in C.
#include<stdio.h> void main() { int =1; printf("%d%d%d",a++,++a,++a); }
which of the following statement is wrong a) mes=123.56; b) con='T'*'A'; c) this='T'*20; d) 3+a=b;
WHAT IS PRE POSSESSORS?
Explain high-order and low-order bytes.
write a program to find the largest and second largest integer from an array
Why is c platform dependent?
why we use "include" word before calling the header file. is there any special name for that include??????
What is static identifier?
Is it better to bitshift a value than to multiply by 2?
Can the sizeof operator be used to tell the size of an array passed to a function?