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

How to implement call back functions ?

3 Answers   HP,


How do we make a global variable accessible across files? Explain the extern keyword?

0 Answers  


What are global variables and how do you declare them?

0 Answers  


How can I open a file so that other programs can update it at the same time?

0 Answers  


What are the different types of linkage exist in c?

0 Answers  






How can I call fortran?

0 Answers  


a.One Cannot Take the address of a Bit Field b.bit fields cannot be arrayed c.Bit-Fields are machine Dependant d.Bit-fields cannot be declared as static Which of the Following Statements are true w.r.t Bit-Fields A)a,b&c B)Only a & b C)Only c D)All

3 Answers   Accenture, Digg.com,


Hi can anyone tell what is a start up code?

0 Answers   CTS,


write a program to print data of 5 five students with structures?

0 Answers  


Why header files are used?

0 Answers  


What does %c mean in c?

0 Answers  


An application package has been provided to you without any documents for the following application. The application needs to be tested. How will you proceed?

0 Answers   Aspire, Infogain,


Categories