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

What is zero based addressing?

0 Answers  


Differentiate fundamental data types and derived data types in C.

0 Answers   HCL,


#include<stdio.h> void main() { int =1; printf("%d%d%d",a++,++a,++a); }

3 Answers   VB,


which of the following statement is wrong a) mes=123.56; b) con='T'*'A'; c) this='T'*20; d) 3+a=b;

0 Answers  


WHAT IS PRE POSSESSORS?

6 Answers   TATA,


Explain high-order and low-order bytes.

0 Answers  


write a program to find the largest and second largest integer from an array

2 Answers   Value Labs,


Why is c platform dependent?

0 Answers  


why we use "include" word before calling the header file. is there any special name for that include??????

1 Answers   TCS,


What is static identifier?

0 Answers   TCS,


Is it better to bitshift a value than to multiply by 2?

0 Answers  


Can the sizeof operator be used to tell the size of an array passed to a function?

0 Answers  


Categories