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 output?
main()
{
#define SQR(x) x++ * ++x
int i = 3;
printf("
%d %d
",SQR(i),i * SQR(i));
}
a)9 27
b)35 60
c)20 60
d)15 175

Answers were Sorted based on User's Feedback



what is output? main() { #define SQR(x) x++ * ++x int i = 3; printf(" %d..

Answer / harichandana

b

Is This Answer Correct ?    5 Yes 3 No

what is output? main() { #define SQR(x) x++ * ++x int i = 3; printf(" %d..

Answer / lalit

b) 35,60

Is This Answer Correct ?    3 Yes 1 No

what is output? main() { #define SQR(x) x++ * ++x int i = 3; printf(" %d..

Answer / aspirant

c

Is This Answer Correct ?    0 Yes 0 No

what is output? main() { #define SQR(x) x++ * ++x int i = 3; printf(" %d..

Answer / kundan

Can anyone please explain it ????

Is This Answer Correct ?    0 Yes 0 No

what is output? main() { #define SQR(x) x++ * ++x int i = 3; printf(" %d..

Answer / anil patil

b) 35 60

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More C Interview Questions

What is an example of structure?

0 Answers  


What is the meaning of typedef struct in c?

0 Answers  


wat is the meaning of c?

9 Answers   CTS, IBM, Wipro,


how to use showbits function?

2 Answers   Infosys, TATA,


How is a macro different from a function?

0 Answers   Tech Mahindra,


WAP that prints the number from 1 to 100. but for multiplies of three print "XXX" instead of the number and for the multiplies of five print "YYY" . for number which are multiplies of both three and five print "ZZZ"

3 Answers  


Which header file should you include if you are to develop a function which can accept variable number of arguments?

0 Answers   TCS, TISL,


the output will be #include<stdio.h> int main () { int i; i = 9/2; printf("%i",i); return 0; }

4 Answers   CMC, TCS,


Why do we use stdio h and conio h?

0 Answers  


write an interactive program to generate the divisors of a given integer.

7 Answers   TCS,


write a c program to calculate sum of digits till it reduces to a single digit using recursion

0 Answers   IBM,


What do you mean by dynamic memory allocation in c?

0 Answers  


Categories