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

Difference between Shallow copy and Deep copy?

0 Answers  


what is the difference between declaration and definition of a variable or function ?

3 Answers  


how can i print "hello".please consider inverted commas as well.i want to print on console: "hello"

4 Answers   Wipro,


how to execute with out main in cprogram

15 Answers   Infosys,


YBJBU6

1 Answers  






Write a client and server program in C language using UDP, where client program interact with the Server as given below: i) The client begins by sending a request to send a string of 8 characters or series of 7 numbers, the server sends back a characters or numbers as per the request of the client. ii) In case of series of 7 numbers: The client sends a multiplication of numbers, to the server. iii) In case of a string of 8 characters: The client sends a reverse order of string to the server.. iv) Server will send an acknowledgment to the client after receiving the correct answer

0 Answers   Ignou, Microsoft,


Explain what are binary trees?

0 Answers  


What do you mean by c what are the main characteristics of c language?

0 Answers  


Can the sizeof operator be used to tell the size of an array passed to a function?

0 Answers  


What is the difference between a string and an array?

0 Answers  


Using which language Test cases are added in .ptu file of RTRT unit testing???

0 Answers  


In the following control structure which is faster? 1.Switch 2.If-else and which consumes more memory?

4 Answers  


Categories