1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

please help me with printf()

Discussion in 'C' started by sumanta.aec, Aug 5, 2013.

  1. sumanta.aec

    sumanta.aec New Member

    Joined:
    Aug 5, 2013
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    hi ,
    i was experimenting with printf() and saw that printf() is returning one more than actual number of characters it sent to output buffer. but it is not happening with the string argument. can any one explain why it is happening? i am using codeblock 10 and GNU gcc compiler .
     
  2. xpi0t0s

    xpi0t0s Mentor

    Joined:
    Aug 6, 2004
    Messages:
    3,012
    Likes Received:
    203
    Trophy Points:
    0
    Occupation:
    Senior Support Engineer
    Location:
    England
    You will need to post some code that shows the problem. It is likely you are seeing correct behaviour and simply misunderstanding it, but I suppose it's possible it could be a bug.
     

Share This Page