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...


what is the output?
#define fun(a,b,t) (g ##t=(a),(a)=(b),(b)=g##t)
float gfloat;
main()
{
float a=1.12,b=3.14;
fun (a,b,float);
printf("na=%4.2f,b=%4.2f",a,b);
}
A)Error in Defining Macro
B)a=1.12,b=3.14
C)a=3.14,b=1.12
D)None of the Above

Answers were Sorted based on User's Feedback



what is the output? #define fun(a,b,t) (g ##t=(a),(a)=(b),(b)=g##t) float gfloat; main() { floa..

Answer / santhoo035

a=3.14,b=1.12

Is This Answer Correct ?    6 Yes 0 No

what is the output? #define fun(a,b,t) (g ##t=(a),(a)=(b),(b)=g##t) float gfloat; main() { floa..

Answer / subbu[iit kgp]

the given program as it gives errors, with some
modifications as

#define fun(a,b,t) g ##t=(a);(a)=(b);(b)=g##t
float gfloat;
main()
{
float a=1.12,b=3.14;
fun(a,b,float);
printf("a=%4.2f,b=%4.2f",a,b);
}

gives the output as option c

Is This Answer Correct ?    4 Yes 1 No

what is the output? #define fun(a,b,t) (g ##t=(a),(a)=(b),(b)=g##t) float gfloat; main() { floa..

Answer / deepa

option c

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

How are variables declared in c?

0 Answers  


What is the code for 3 questions and answer check in VisualBasic.Net?

0 Answers   Infosys,


In a header file whether functions are declared or defined?

0 Answers   TISL,


An expression to whose value an operater is applied a) operand b) variable c) constant d) all of the above

0 Answers  


Finding first/last occurrence of a character in a string without using strchr( ) /strrchr( ) function.

2 Answers  


What do you mean by dynamic memory allocation in c? What functions are used?

0 Answers  


HOW TO SWAP TWO NOS IN ONE STEP?

16 Answers   Satyam,


What are the types of c language?

0 Answers  


write a statement to display all the elements array M(in reverse order? int M[8]={20,21,22,23,24,25,26,27};

5 Answers  


What is a C array and illustrate the how is it different from a list.

1 Answers   Amazon,


when will be evaluated as true/ if(x==x==x) a) x=1; b) x=0; c) x=-1; d) none

7 Answers   HCL,


main() { char *p; p="Hello"; printf("%c\n",*&*p); }

2 Answers   ME,


Categories