Monday, 28 March 2016

printf("")


Hello guys, today i am gonna tell you about the function known as printf();
here is our basic program we are gonna study all of its element line by line so today is the turn of the function printf();



#include<stdio.h>
#include<conio.h>
void main()
{
 clrscr();
 printf("hello world");
}




printf stands for PRINT FORMATTED 
printf() is a function which we will use in every program . Its task is to print an output or a line or a simple sentence in output/console window ( in our example it is used to print the line hello world). printf() will print any word or sentence which is placed between "" , except escape sequences like \n \a etc ( about which I will tell u in my next post ). Till now we can understand printf() by a simple logic that ,it will print everything which is placed between inverted commas "" except some special symbol (\n , \a  etc).

SYNTAX: 
printf(" your message or output ");

NOTE: printf()  IS ALSO USE TO PRINT A VARIABLE WHICH WE WILL COVER AFTER COVERING A TOPIC CALLED VARIABLES .

 THANK U !!!!

0 comments:

Post a Comment