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
Combinations of fibanocci prime series
What is const volatile variable in c?
Explain what is the difference between null and nul?
How can I run c program?
how to solve "unable to open stdio.h and conio.h header files in windows 7 by using Dos-box software
What are the types of pointers in c?
What is a macro, and explain how do you use it?
What is an arrays?
main() { inta=10,b=20; a>=5?b=100:b=200; printf("%d ",b); }
What is a function simple definition?
Write a C program to count the number of email on text
can any one provide me the notes of data structure for ignou cs-62 paper
how do you execute a c program in unix.
What are different storage class specifiers in c?
Study the following C program :call_me (myvar)int myvar;{ myvar +- 5; }main(){int myvar;myvar = 3;call_me(myvar);printf("%d ",myvar);What will be printed a) 3 b) 5 c) 8 d) symbol