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


Please Help Members By Posting Answers For Below Questions

Can the “if” function be used in comparing strings?

576


how should functions be apportioned among source files?

616


How can I list all of the predefined identifiers?

566


write a program in c language to print your bio-data on the screen by using functions.

6236


.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; }

1979






What is null character in c?

677


How to set file pointer to beginning c?

651


will u please send me the placement papers to my mail???????????????????

1355


why wipro wase

1817


Why is c so important?

586


is it possible to create your own header files?

623


What is an example of structure?

580


Why is c used in embedded systems?

598


Explain what are the advantages and disadvantages of a heap?

589


Why do we use & in c?

578