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();

}

Answers were Sorted based on User's Feedback



A.C func() { pritnf(" in fuction %d",MACRO); } MAIN.c testfunc() { #defi..

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

A.C func() { pritnf(" in fuction %d",MACRO); } MAIN.c testfunc() { #defi..

Answer / venu

MAIN.c

#define MACRO 10

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More C Interview Questions

how to find out the biggest element (or any other operation) in an array which is dynamic. User need not to mention the array size while executing.

3 Answers  


what is the function of void main()?

8 Answers  


What is #include conio h?

0 Answers  


declare afunction pointer to int printf(char *)?

1 Answers   HCL,


What is non linear data structure in c?

0 Answers  


what is the use of fflush() function?

2 Answers  


i have to apply for rbi before that i need to know the the syllabus for the entrance questions. whethet it may be aps or techinical

0 Answers  


What is the explanation for cyclic nature of data types in c?

0 Answers  


in linking some of os executables are linking name some of them

0 Answers   IBM,


If null and 0 are equivalent as null pointer constants, which should I use?

0 Answers  


How can I avoid the abort, retry, fail messages?

0 Answers  


why we are using float in C

4 Answers  


Categories