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 does the && operator do in a program code?
Is linux written in c?
How can you increase the allowable number of simultaneously open files?
Write a program to reverse a given number in c?
7-Given an index k, return the kth row of the Pascal's triangle. For example, when k = 3, the row is [1,3,3,1]. For reference look at the following standard pascal’s triangle.
What is a lvalue
Why C language is a procedural language?
What are two dimensional arrays alternatively called as?
Why do we write return 0 in c?
When I set a float variable to, say, 3.1, why is printf printing it as 3.0999999?
What is a nested formula?
What is 1f in c?
What is memory leak in c?
What is optimization in c?
1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. 2) the Event Manager has to send participants to the stage to perform in the order in which they registered. Write a program that will help the Event Manager know who to call to the stage to perform. The Logic should be in Data Structures