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
What is the difference between array and linked list in c?
What is the purpose of sprintf?
What is array of structure in c?
how can I convert a string to a number?
Explain what is the difference between #include and #include 'file' ?
If the size of int data type is two bytes, what is the range of signed int data type?
Can one function call another?
Write a program to generate a pulse width frequency of your choise,which can be variable by using the digital port of your processor
What is the use of header files?
What is main function in c?
Ow can I insert or delete a line (or record) in the middle of a file?
What is keyword with example?
code for quick sort?
What are the types of bitwise operator?
What is the scope of local variable in c?