Data Output printf and putchar Example Program In C
Definition for printf and putchar
- In C Programming,printf function to output a formatted string.
- putchar function to output a Single character.Writes a character to the standard output (stdout).
Syntax for printf and putchar()
printf(const char *format, ...);
putchar(character/character variable);
Example Program Data Output In C (printf and putchar)
/* Example Program For Data Output printf and putchar Example In C Programming Language
little drops @ thiyagaraaj.com
Coded By:THIYAGARAAJ MP */
// Header Files
#include<stdio.h>
#include<conio.h>
//Main Function
int main()
{
//Printf Standard Ouput Statement
printf("Data Output Using Printf\n");
// Print Single Character
putchar('a');
// Wait For Output Screen (Not working in gcc compiler, please remove it. In gcc compiler)
getch();
//Main Function return Statemen
return 0;
}
Sample Output:
Data Output Using Printf
a
Read More Articles
- Use of getch(),getche() and getchar() in C
- Switch Case Statement Example Program In C Programming Language
- C Character Set
- Convert a Floating-point value to an Integer in C
- Data Input and Output gets and puts Example Program In C
- Special Operators In C
- Pointer Representation and Pointer Example Programs
- C Data Input and Data Output
- Simple While Loop Example Program In C Programming Language
- Data Output printf and putchar Example Program In C
- C Introduction
- C Operators
- Storage Classes In C
- C Pointers
- File Management
- C Identifiers
- Loop Control Statements
- Hello World - Simple C Program
- C Array
- Single Character Output Function : putchar()
- C Reserve Words
- C Specific Properties and Implementation
- If else Statement Example Program In C Programming Language
- If Statement Example Program In C Programming Language
- Confusing Array in C ( Array Representation and Initialization )