0% found this document useful (0 votes)
8 views

Output Function & Data Types in C

Uploaded by

sugriv1590
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views

Output Function & Data Types in C

Uploaded by

sugriv1590
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

Fuction = Function Call + Function Definition

Function Call - What to do? - Inside the main function


Function Definition - How to do? - Outside the main function
Output Function in C:
- printf();
- Pre-defined Function
- Definition -> stdio.h
- Displays everything inside the double quotes except escape sequence(\) and
format specifier(%)
in the console window or user screen.
\n - New Line
\t - Tab Space (8 Spaces)
\h - horizontal
\v - vertical
\b - backspace
\a - alarm

//Program for Output Function


#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
printf("\nWelcome to \nC Programming \n\tBatch 113");
getch();
}

#include<stdio.h>

<> - File ->What file?


.h - Header File -> Which Header File?
stdio - Standard Input Output -> For What?
include - Include -> Where to Include?
# - Pre-Processor Directive -> Processor converts the input to ouput

Turbo C++:

Coding - Blue Color Screen - Compiler Window


Output - Black Color Screen - User Screen or Console Window

conio.h
- Console Input Output Header File
- clrscr(), getch()

clrscr() - Clears the User Screen or Console Window - clears the contents until
the function is called

getch() - Get Character - Links the Compiler Window to Console Window


- It remains in the console window until any one key in the
keyboard is
pressed

Data Types:
Type - Varieties
Data - Information or Raw Information

Types of Datas:
Character a,b,c,d,e......
Numbers 1,2,3,.....
Fractional Values 1.1,1.2.,,,,,,
Symbols +,-,*,.....
Special Characters @,#,!,.....

You might also like