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 a good way to implement complex numbers in c?

1007


What does the characters “r” and “w” mean when writing programs that will make use of files?

1432


What are the properties of union in c?

1013


How can I pad a string to a known length?

985


Why can’t constant values be used to define an array’s initial size?

1333


What are external variables in c?

1051


When should a far pointer be used?

1074


Place the #include statement must be written in the program?

998


Are local variables initialized to zero by default in c?

996


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

1068


What are keywords in c with examples?

1050


Explain how can I convert a number to a string?

1113


What are the rules for the identifier?

1119


What is getch() function?

1019


What are bitwise shift operators in c programming?

1046