Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 / modassir

The error is for the line where we try to call func()
where we try to print macro through printf, as because
macro is not define there.

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is it acceptable to declare/define a variable in a c header?

1125


I have a varargs function which accepts a float parameter?

1047


what is the basis for selection of arrays or pointers as data structure in a program

4309


What are types of preprocessor in c?

1074


What is the difference between exit() and _exit() function?

1045


write a program using linked list in which each node consists of following information. Name[30] Branch Rollno Telephone no i) Write the program to add information of students in linked list

2808


How to declare pointer variables?

1242


Is using exit() the same as using return?

1357


Why is #define used?

1275


can any one tel me wt is the question pattern for NIC exam

1983


How do you convert strings to numbers in C?

1226


What is the difference between void main and main in c?

1156


a c code by using memory allocation for add ,multiply of sprase matrixes

2800


what is different between auto and local static? why should we use local static?

1128


Is file a keyword in c?

935