What does printf do?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ledzepfan32
    New Member
    • Sep 2006
    • 13

    #1

    What does printf do?

    i have a question: what does printf do? i have seen it a lot, but cannot find a clear description of what it does. in my learn c++ in 21 days book, it states that it will not teach it in the book. thanks, -Brad
  • arne
    Recognized Expert Contributor
    • Oct 2006
    • 315

    #2
    Originally posted by ledzepfan32
    i have a question: what does printf do? i have seen it a lot, but cannot find a clear description of what it does. in my learn c++ in 21 days book, it states that it will not teach it in the book. thanks, -Brad
    You may have a look at
    http://www.cplusplus.c om/ref/cstdio/printf.html

    It is the first hit for "printf" in Google btw ...

    Comment

    • khumber
      New Member
      • Oct 2006
      • 1

      #3
      Originally posted by ledzepfan32
      i have a question: what does printf do? i have seen it a lot, but cannot find a clear description of what it does. in my learn c++ in 21 days book, it states that it will not teach it in the book. thanks, -Brad
      hi Brad,it good to know that you are interesting in c programming. The purpose of the printf is print on screen word or opertaion etc; it's a built in function in c.It uses the header libaray {stdio.h}.

      example printf("the day is beautiful");
      what will be printed on screen is : the day is beatiful.

      i can even go on to explain in more depth but you should try this frist.

      Comment

      Working...