The following program fragment int m=n=b=8; char wer[80]; sprintf(wer, "%d%d%d", m, n, b,); puts (wer): 1. prints the string 8 8 8 2. prints the null string 3. prints the string m, n, b 4. none of these

Questions by Rujul   answers by Rujul

Showing Answers 1 - 6 of 6 Answers

Payal

  • Mar 15th, 2007
 

Correct ans is 1. sprintf is same as printf except it stores a output to the buffer(here wer). we can say that it is opposite to atoi().

  Was this answer useful?  Yes

vijay

  • Mar 20th, 2007
 

ans is 4 coz n and b are undecalred. first declare them and the assign the vaue. so in the code u will get error.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions