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 a built-in function in C?
write a program to display all prime numbers
Explain pointer. What are function pointers in C?
Explain what are linked list?
By using C language input a date into it and if it is right?
Explain enumerated types in c language?
Is it better to use a macro or a function?
What are logical errors and how does it differ from syntax errors?
Can math operations be performed on a void pointer?
What is the code for 3 questions and answer check in VisualBasic.Net?
Write a program to know whether the input number is an armstrong number.
What is enumerated data type in c?
What is #define in c?
What is the size of structure pointer in c?
find the output? void r(int a[],int c, int n) { if(c>n) { a[c]=a[c]+c; r(a,++c,n); r(a,++c,n); } } int main() { int i,a[5]={0}; r(a,0,5); for(i=0;i<5;i++) printf("\n %d",a[i]); getch(); }