C programming use of printf function

C programming use of printf function

C programming language uses some pre build functions which stored in header file, the printf function is very important function in language and this function is used to print output of C program on computer scream. Print function provide the result of any C program after successful compilation of program on computer system.

Examlpe

#include<stdio.h>

int main()

{

printf(“What is your Name ?\n”);
printf(“My name is Robinson”);

}

printf function in c

 

 

In above Example two time print function is used to display two statement

Output of above program after compilation

What is your Name ?

My name is Robinson

printf instructs the computer to display character string on computer screen, the character string enclosed in the quotation marks.

 

Leave a comment