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

Describe how arrays can be passed to a user defined function

785


can we change the default calling convention in c if yes than how.........?

2036


the statement while(i) puts the entire logic in loop. this loop is called a) indefinite loop b) definite loop c) loop syntax wrong d) none of the above

607


Can you apply link and association interchangeably?

680


Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create.

1481






What tq means in chat?

583


List the variables are used for writing doubly linked list program.

1625


Explain what is the best way to comment out a section of code that contains comments?

723


How do you determine a file’s attributes?

603


When should the volatile modifier be used?

688


Explain how can I manipulate strings of multibyte characters?

785


What is difference between arrays and pointers?

584


Can we change the value of #define in c?

587


How can I make sure that my program is the only one accessing a file?

680


What does dm mean sexually?

815