4)What would be the output?
main()
{
int num=425;
pf("%d",pf("%d",num));
}

a)Comp error
b)4425
c)4253
d)3435
e)none

Answers were Sorted based on User's Feedback



4)What would be the output? main() { int num=425; pf("%d",pf("%d",num)); } ..

Answer / aswini

Answer is 4253

Is This Answer Correct ?    8 Yes 2 No

4)What would be the output? main() { int num=425; pf("%d",pf("%d",num)); } ..

Answer / rajesh

Answer: b (4253)

Check www.codepad.org

Is This Answer Correct ?    5 Yes 0 No

4)What would be the output? main() { int num=425; pf("%d",pf("%d",num)); } ..

Answer / teja

Plzz explain hw u got that o/p

Is This Answer Correct ?    4 Yes 0 No

4)What would be the output? main() { int num=425; pf("%d",pf("%d",num)); } ..

Answer / aswini

see.printf is a function that returns number.hence it will
return 3.then as there is a %d it will return the number in
its locality.hence it will return 425.
so the answer is 4253....

Is This Answer Correct ?    2 Yes 0 No

4)What would be the output? main() { int num=425; pf("%d",pf("%d",num)); } ..

Answer / ajay lakhara

a)comp error

Is This Answer Correct ?    3 Yes 1 No

4)What would be the output? main() { int num=425; pf("%d",pf("%d",num)); } ..

Answer / gouse mohiddin

4253

Is This Answer Correct ?    2 Yes 0 No

4)What would be the output? main() { int num=425; pf("%d",pf("%d",num)); } ..

Answer / ar ind,faisal,jitendra

4253 bcoz printf always return no of chracters inside its()
so it become 4253

Is This Answer Correct ?    2 Yes 0 No

4)What would be the output? main() { int num=425; pf("%d",pf("%d",num)); } ..

Answer / ramlal bishnoi

plz explain this answer

Is This Answer Correct ?    0 Yes 0 No

4)What would be the output? main() { int num=425; pf("%d",pf("%d",num)); } ..

Answer / soni

a

Is This Answer Correct ?    1 Yes 1 No

4)What would be the output? main() { int num=425; pf("%d",pf("%d",num)); } ..

Answer / niranjan kumar niraj

e)none

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More C Interview Questions

How to delete a node from linked list w/o using collectons?

0 Answers   Zycus Infotech,


Is main is a keyword in c?

0 Answers  


12345 1234 123 12 1

2 Answers  


What is the output of the following program #include<stdio.h> main() { int i=0; fork(); printf("%d",i++); fork(); printf("%d",i++); fork(); wait(); }

8 Answers   ADITI, Adobe,


 write a program that will open the file, count the number of occurences of each word in the the complete works of shakespeare.  You will then tabulate this information in another file.

0 Answers  


State two uses of pointers in C?

0 Answers   Aspire, Infogain,


What is union in c?

0 Answers  


How do you declare a variable that will hold string values?

0 Answers  


What is the memory allocated by the following definition ? int (*x)[10];

4 Answers   ADITI, Wipro,


How do I swap bytes?

0 Answers  


Explain what is the best way to comment out a section of code that contains comments?

0 Answers  


Does c have circular shift operators?

0 Answers  


Categories