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 does s c mean in text?

0 Answers  


Should I learn data structures in c or python?

0 Answers  


what is the difference between NULL('\0') and 0?

14 Answers   Microsoft,


write a c program to find the probability of random numbers between 1-1000

0 Answers   ADS,


A variable that is defined in a specified portion of a program but can be used throughout the program a) global variable b) local variable c) character d) none

0 Answers  


write a program that reads lines(using getline), converts each line to an integer using atoi, and computes the average of all the numbers read. also compute the standard deviation.

0 Answers  


what does data structure mean?

8 Answers  


main() { enum _tag{ left=10, right, front=100, back}; printf("%d, %d, %d, %d", left, right, front, back); }

1 Answers   Accenture, Vector,


What is the default value of local and global variables in c?

0 Answers  


how do you redirect stdout value from a program to a file?

1 Answers  


what is a void pointer?

2 Answers  


Determine the code below, tell me exactly how many times is the operation sum++ performed ? for ( i = 0; i < 100; i++ ) for ( j = 100; j > 100 - i; j--) sum++;

5 Answers   ITCO, Wipro,


Categories