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

What is the benefit of using #define to declare a constant?

1148


What is a #include preprocessor?

1220


What is a wrapper function in c?

1168


Why do we use header files in c?

1123


How does free() know explain how much memory to release?

1108


What are derived data types in c?

1130


A character flag or control mechanism that delineates one data item from another a) variable b) constant c) delimiter d) call by reference

1149


please can any one suggest me best useful video tutorials on c i am science graduate.please help me.u can email me to sas29@in.com

1838


if a is an integer variable, a=5/2; will return a value a) 2.5 b) 3 c) 2 d) 0

2012


What does 3 mean in texting?

1162


Can a void pointer point to a function?

1076


What is an lvalue?

1107


What is structure in c explain with example?

1213


Explain high-order and low-order bytes.

1167


List some of the dynamic data structures in C?

1301