First we understand that why we need to formatted input and output.
If the user want to print any character on computer screen than the user can't direct say to the computer to print that character.
because the computer is a machine. it have no idea and felling. a human can understood but a computer can't.
So in C language proved us formatted input and output to say the computer that you need to print the character on consol(screen).
"there are many formatted input and output"
in this section we understood the printf and scanf.
printf :
the main point is that if the users print any character on consol than they used the printf. but the computer don't understood what is the printf so, the users used the header file stdio.h (standard input and output). when the compiler compile the source code than first the compiler read the header file than it understood about the printf
❮ Previous Next ❯
If the user want to print any character on computer screen than the user can't direct say to the computer to print that character.
because the computer is a machine. it have no idea and felling. a human can understood but a computer can't.
So in C language proved us formatted input and output to say the computer that you need to print the character on consol(screen).
"there are many formatted input and output"
in this section we understood the printf and scanf.
printf :
the main point is that if the users print any character on consol than they used the printf. but the computer don't understood what is the printf so, the users used the header file stdio.h (standard input and output). when the compiler compile the source code than first the compiler read the header file than it understood about the printf
Scanf :
it is used to take the values from the user. of the user want to create a dynamic programs than the scanf is used.
in scanf there are two parameter
1) data type.
2) veriable name.
❮ Previous Next ❯
0 Comments