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 / venu
MAIN.c
#define MACRO 10
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Can the “if” function be used in comparing strings?
how should functions be apportioned among source files?
How can I list all of the predefined identifiers?
write a program in c language to print your bio-data on the screen by using functions.
.find the output of the following program? char*myfunc(char*ptr) { ptr +=3; return (ptr); } int main() { char*x,*y; x="HELLO"; y=myfunc(x); printf("y = %s ",y); return 0; }
What is null character in c?
How to set file pointer to beginning c?
will u please send me the placement papers to my mail???????????????????
why wipro wase
Why is c so important?
is it possible to create your own header files?
What is an example of structure?
Why is c used in embedded systems?
Explain what are the advantages and disadvantages of a heap?
Why do we use & in c?