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
Which header file should you include if you are to develop a function which can accept variable number of arguments?
What is the maximum no. of arguments that can be given in a command line in C.?
Where static variables are stored in memory in c?
What is auto keyword in c?
When should the const modifier be used?
.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; }
In C, What is the #line used for?
What is a function in c?
Why is c not oop?
What is the meaning of 2d in c?
Explain what is dynamic data structure?
What is the difference between specifying a constant variable like with constant keyword and #define it? i.e what is the difference between CONSTANT FLOAT A=1.25 and #define A 1.25
What is the symbol indicated the c-preprocessor?
A text file that contains declarations used by a group of functions,programs,or users a) executable file b) header file c) obj file d) .cfile
List some applications of c programming language?