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

Which programming language is best for getting job 2020?

0 Answers  


find the value of y y = 1.5x+3 for x<=2 y = 2x+5 for x>2

0 Answers   TCS,


What is #ifdef ? What is its application?

0 Answers   TCS,


which one is better structure or union?(other than the space occupied )

2 Answers  


What is methods in c?

0 Answers  






how to generate sparse matrix in c

3 Answers  


actually i have 2 years teaching experience as computer faculty but now i am a DBA but when i go for interview many peoples asked me why i left my teaching profession and why i want to come in this field kindly give me the proper answer of this queston

3 Answers   Ramco,


what will be the output of the following program, justify? #define TEST int TEST getdata() { static i; i+=10; return i; } main() { int k; k = getdata(); }

3 Answers  


What is a const pointer in c?

0 Answers  


the number 138 is called well ordered number because the three digits in the number (1,3,8) increase from left to right (1<3<8). the number 365 is not well ordered coz 6 is larger than 5. write a program that wull find and display all possible three digit well ordered numbers. sample: 123,124,125,126,127,128,129,134 ,135,136,137,138,139,145,146,147 148 149,156.......789

5 Answers  


What is operator precedence?

0 Answers  


write a program to check whether a given integer is a strong number or not? [Hint: 145=1!+4!+5! =1+24+120 =145]

7 Answers  


Categories