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

Combinations of fibanocci prime series

1557


What is const volatile variable in c?

986


Explain what is the difference between null and nul?

1087


How can I run c program?

1132


how to solve "unable to open stdio.h and conio.h header files in windows 7 by using Dos-box software

3262


What are the types of pointers in c?

973


What is a macro, and explain how do you use it?

1021


What is an arrays?

1031


main() { inta=10,b=20; a>=5?b=100:b=200; printf("%d ",b); }

1456


What is a function simple definition?

1033


Write a C program to count the number of email on text

1857


can any one provide me the notes of data structure for ignou cs-62 paper

2120


how do you execute a c program in unix.

1078


What are different storage class specifiers in c?

1044


Study the following C program :call_me (myvar)int myvar;{ myvar +- 5; }main(){int myvar;myvar = 3;call_me(myvar);printf("%d ",myvar);What will be printed a) 3 b) 5 c) 8 d) symbol

1077