Connecting Tech Pros Worldwide Forums | Help | Site Map

What does printf do?

Newbie
 
Join Date: Sep 2006
Posts: 13
#1: Oct 20 '06
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's Avatar
Expert
 
Join Date: Oct 2006
Posts: 306
#2: Oct 20 '06

re: What does printf do?


Quote:

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.com/ref/cstdio/printf.html

It is the first hit for "printf" in Google btw ...
Newbie
 
Join Date: Oct 2006
Location: jamaica
Posts: 1
#3: Oct 21 '06

re: What does printf do?


Quote:

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.
Reply