Pages

Wednesday, July 13, 2011

The printf() Function in C and C++

Function Name: printf()
Function Header: <stdio.h> 
Declaration: int printf(const char *format [ ,argument ,...]);
Return Value: printf() sends formatted output to stdin.

The printf() function is used to print something on the output window. It prints the strings which are written within quotation. The printf() function is also used to print formatted output.




The example of printf() function

#include<stdio.h>
#include<conio.h>

void main()
{
   clrscr();
   printf("Welcome to C programming");
   getch();
}

Output


The printf() is mostly used to print formatted output. An example is given below for showing how to print formatted output with printf() function.

#include<stdio.h>
#include<conio.h>

void main()
{
  clrscr();
  printf("I like %c %s",'C',"very much");
  getch();
}

Output

41 comments:

Anonymous said...

At this time it seems like BlogEngine is the preferred blogging platform
out there right now. (from what I've read) Is that what you're
using on your blog?
Also see my web site :: latest football transfer news in europe

Anonymous said...

Howdy just wanted to give you a brief heads
up and let you know a few of the images aren't loading properly. I'm not sure why but I think its a linking issue.
I've tried it in two different web browsers and both show the same outcome.

Here is my web page: click here

Anonymous said...

Fabulous, what a webpage it is! This blog presents
useful data to us, keep it up.

Here is my page - how to lose weight quickly

Anonymous said...

Hi to all, how is the whole thing, I think every one
is getting more from this web page, and your views are pleasant
in favor of new viewers.

Here is my blog post free printable ragu coupons

Anonymous said...

It's a pity you don't have a donate button! I'd without a doubt donate to this excellent blog! I guess for now i'll settle for book-marking and adding your RSS feed to my Google
account. I look forward to new updates and will talk about this website with my Facebook group.
Chat soon!

Here is my website - youtube jessica ennis powerade

Anonymous said...

At this moment I am going to do my breakfast, once having my breakfast coming again to read additional
news.

Here is my web site: Pancake recipe aunt jemima

Anonymous said...

Undeniably believe that that you said. Your favorite reason seemed to be on the web the simplest thing to remember of.
I say to you, I certainly get annoyed while folks think about
worries that they plainly do not recognise about. You controlled to hit
the nail upon the top and also defined out the whole thing with no need side-effects ,
folks can take a signal. Will likely be back to
get more. Thank you

My web-site jello snacks coupons

Anonymous said...

You made some decent points there. I checked on the net for additional information
about the issue and found most people will go along with your views on this site.



my homepage; bertolli dinner coupons 2011

Anonymous said...

My family all the time say that I am wasting my time here
at web, however I know I am getting familiarity every day by reading such nice articles.


Take a look at my weblog: estee lauder vs oil of olay

Anonymous said...

Can you tell us more about this? I'd love to find out more details.

Check out my homepage ... you're my
present this year folgers

Anonymous said...

Hello there! Do you know if they make any plugins to safeguard against hackers?
I'm kinda paranoid about losing everything I've worked hard on.
Any recommendations?

My weblog :: pore Refining Cream neutrogena

Anonymous said...

Hi! I just would like to give you a big thumbs up for the
great info you've got here on this post. I will be returning to your site for more soon.

Also visit my webpage sertifikat clean and clear

Anonymous said...

Hello There. I found your blog using msn. This is a really well written article.
I'll be sure to bookmark it and return to read more of your useful info. Thanks for the post. I'll certainly return.


Also visit my site: careers at nabisco

Anonymous said...

Cool blog! Is your theme custom made or did you download it from somewhere?
A design like yours with a few simple tweeks would really make my blog stand out.
Please let me know where you got your design. Kudos

Here is my page :: jobs at chobani

Anonymous said...

I was wondering if you ever considered changing the structure of your website?
Its very well written; I love what youve got to say.
But maybe you could a little more in the way of
content so people could connect with it better. Youve
got an awful lot of text for only having 1 or 2
pictures. Maybe you could space it out better?

Also visit my site; brownie recipe with philadelphia cream cheese

Anonymous said...

We're a group of volunteers and opening a new scheme in our community. Your site offered us with valuable information to work on. You have done a formidable job and our entire community will be grateful to you.

Take a look at my site - stouffer's king of prussia

Anonymous said...

Ahaa, its fastidious discussion on the topic of this article at this place at this
website, I have read all that, so at this time me also
commenting at this place.

Also visit my blog post ... oven directions for digiorno pizza

Anonymous said...

Everything is very open with a very clear clarification
of the issues. It was truly informative. Your website is very helpful.
Thanks for sharing!

Also visit my website - kleenex brand kleenex

Anonymous said...

When I originally commented I appear to have clicked the -Notify me
when new comments are added- checkbox and from now on every time a comment
is added I recieve 4 emails with the exact same comment.

Is there a way you can remove me from that service? Thanks!


my web page: youtube silk meeting in my bedroom

Anonymous said...

I'd like to find out more? I'd care to find out more details.


Also visit my web site - carbs in crystal light

Anonymous said...

I used to be able to find good information from your articles.



My weblog: L'oreal hair Care coupons

Anonymous said...

Hi my family member! I wish to say that this post is
amazing, great written and include approximately
all significant infos. I would like to look extra posts like this .


Also visit my website ... quilted northern vs angel soft

Anonymous said...

Hey there would you mind letting me know which hosting company you're using? I've loaded your blog in 3 completely different web browsers and I must say this blog loads
a lot faster then most. Can you suggest a good web hosting provider at a honest price?
Thank you, I appreciate it!

Feel free to surf to my blog post; charmin moist wipes coupons

Anonymous said...

I have been exploring for a bit for any high quality articles
or weblog posts on this kind of space . Exploring in Yahoo I at last
stumbled upon this site. Reading this information So i am glad to
convey that I've a very excellent uncanny feeling I discovered just what I needed. I so much certainly will make certain to do not disregard this web site and provides it a glance regularly.

Feel free to surf to my weblog: elbow macaroni ronzoni

Anonymous said...

If you want to take much from this piece of writing then you
have to apply such techniques to your won blog.

Here is my weblog que es kotex

Anonymous said...

I've been surfing online more than 3 hours today, yet I never found any interesting article like yours. It's pretty worth
enough for me. In my opinion, if all webmasters and bloggers made
good content as you did, the net will be a lot more useful than ever before.


Here is my site: Lyrics ocean Spray manic street preachers

Anonymous said...

After going over a handful of the articles on your website, I seriously like your technique of
writing a blog. I book marked it to my bookmark website list and will
be checking back soon. Please check out my web site too and
let me know what you think.

Feel free to surf to my blog - nutrition simply orange

Anonymous said...

Hey There. I found your blog using msn. This is
an extremely well written article. I'll be sure to bookmark it and return to read more of your useful information. Thanks for the post. I will definitely return.

Also visit my web site :: just before dawn

Anonymous said...

Pretty! This has been an extremely wonderful article.
Thank you for providing this info.

Also visit my blog ... lysol coupons january 2012

Anonymous said...

Hello, its nice post on the topic of media print, we all be familiar with
media is a enormous source of information.

Review my web blog - dove visible care coupons

Anonymous said...

Wonderful blog! I found it while searching on Yahoo News.
Do you have any tips on how to get listed in Yahoo News?
I've been trying for a while but I never seem to get there! Cheers

Feel free to surf to my web site; suave men's body wash coupons

Anonymous said...

It is not my first time to go to see this site,
i am visiting this web page dailly and take pleasant information from here daily.


Here is my website :: kirkland Dog food vs purina

Anonymous said...

Hmm it appears like your blog ate my first comment (it
was super long) so I guess I'll just sum it up what I submitted and say, I'm thoroughly enjoying your blog.
I as well am an aspiring blog blogger but I'm still new to the whole thing. Do you have any recommendations for novice blog writers? I'd really appreciate it.


Here is my web-site ... first snapple fact

Anonymous said...

Nice post. I learn something totally new and challenging on websites I stumbleupon everyday.
It's always helpful to read articles from other writers and use something from their sites.

my webpage ... lipton pure leaf tea coupons

Anonymous said...

Howdy would you mind stating which blog platform you're working with? I'm looking to start my
own blog soon but I'm having a difficult time making a decision between BlogEngine/Wordpress/B2evolution and Drupal. The reason I ask is because your design seems different then most blogs and I'm
looking for something unique. P.S Sorry for
getting off-topic but I had to ask!

My webpage; dial soap coupon june 2012

Anonymous said...

Thankfulness to my father who shared with me
on the topic of this website, this web site is genuinely amazing.


My web blog :: quaker steak and lube syracuse ny coupons

Anonymous said...

Magnificent goods from you, man. I have be aware your stuff prior to and
you are simply extremely magnificent. I actually like what
you've got right here, certainly like what you are stating and the way by which you are saying it. You make it entertaining and you continue to take care of to stay it wise. I cant wait to read much more from you. That is actually a great website.

Visit my web page :: charmin ultra strong printable coupons

Anonymous said...

It's enormous that you are getting thoughts from this piece of writing as well as from our argument made here.

My homepage - phpfox.webmaksi.com

Anonymous said...

Can I just say what a relief to uncover somebody that actually knows what they are discussing online.
You certainly know how to bring a problem to light and
make it important. More and more people have to look at this and understand this side of your story.

I was surprised you are not more popular because you
definitely have the gift.

Here is my site: petsmart eukanuba coupons

Anonymous said...

I think what you wrote was actually very logical. But, think on this,
what if you were to write a awesome headline?
I ain't saying your information isn't solid.
, but suppose you added a headline that makes people want more?
I mean "printf() Function in C/c++ Language" is kinda plain.

You could peek at Yahoo's home page and watch how they create news titles to grab people to open the links. You might try adding a video or a related picture or two to get readers excited about what you've got to say.
Just my opinion, it could bring your website a
little bit more interesting.

Also visit my weblog printable coupons for lean cuisine entrees

Anonymous said...

I loved as much as you will receive carried out right
here. The sketch is tasteful, your authored subject matter stylish.
nonetheless, you command get got an shakiness over that you wish be delivering
the following. unwell unquestionably come further formerly again as exactly the same nearly
very often inside case you shield this increase.

my website :: suave dry shampoo coupons