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 do you execute a c program in unix.

0 Answers  


what is computer engg

1 Answers  


How can I check whether a file exists? I want to warn the user if a requested input file is missing.

0 Answers  


Write a program to remove the C comments(/* */) and C++ comments(//) from a file. The file should be declared in command line.

4 Answers   Persistent, Subex,


Differentiate between full, complete & perfect binary trees.

0 Answers  






When is a null pointer used?

0 Answers  


what type of language is C?

13 Answers   Microsoft,


"I LOVE MY COUNTRY" write a c program to get "COUNTRY MY LOVE I" as the output. Use any other programming language. It is not mandatory to use C.

11 Answers   ABC Infotech, ADP, College School Exams Tests, Kovair,


main() { clrscr(); } clrscr();

6 Answers   ME, Wipro,


What are dangling pointers in c?

0 Answers  


main() { char ch='356'; Printf("%d",ch); } *OUTPUT*:- -18 *Why?*

1 Answers  


What do you mean by command line argument?

0 Answers   TCS,


Categories