Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

Reverse the part of the number which is present from position i to j. Print the new number.[without using the array] eg: num=789876 i=2 j=5 778986

2 Answers  


What are the back slash character constants or escape sequence charactersavailable in c?

0 Answers  


What does %c mean in c?

0 Answers  


How is a structure member accessed?

0 Answers  


Write a function in c to find the area of a triangle whose length of three sides is given.

2 Answers  


what is the use of fflush() function?

2 Answers  


write a program which the o/p should b in such a way that s triangle if I/p is 3,a Square/rectangle if I/P=4,a pentagon if I/P=5 and so on...forget about the I/P which is less than 3

0 Answers   ADP,


What is sorting in c plus plus?

0 Answers  


Can include files be nested? How many levels deep can include files be nested?

0 Answers   Aspire, Infogain,


implement general tree using link list

1 Answers   Wipro,


what is the defrenece between structure and union

5 Answers   Aloha Technology,


How can I find the modification date and time of a file?

0 Answers  


Categories