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
Describe how arrays can be passed to a user defined function
can we change the default calling convention in c if yes than how.........?
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
Can you apply link and association interchangeably?
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.
What tq means in chat?
List the variables are used for writing doubly linked list program.
Explain what is the best way to comment out a section of code that contains comments?
How do you determine a file’s attributes?
When should the volatile modifier be used?
Explain how can I manipulate strings of multibyte characters?
What is difference between arrays and pointers?
Can we change the value of #define in c?
How can I make sure that my program is the only one accessing a file?
What does dm mean sexually?