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 header files do I need in order to define the standard library functions I use?

1052


Describe the order of precedence with regards to operators in C.

1047


Where static variables are stored in c?

1105


How is null defined in c?

1151


What is a lvalue

1081


Tell me with an example the self-referential structure?

1012


What is the significance of scope resolution operator?

1410


What is the difference between abs() and fabs() functions?

1120


Explain what will be the outcome of the following conditional statement if the value of variable s is 10?

1246


A c program to display count values from 0 to 100 and flash each digit for a secong.reset the counter after it reaches 100.use for loop,. pls guys hepl me.. :(

2250


Explain how are 16- and 32-bit numbers stored?

1265


ATM machine and railway reservation class/object diagram

5241


What are the 5 types of organizational structures?

1071


What is pass by reference in c?

1186


Write a simple code fragment that will check if a number is positive or negative.

1145