2. Topic
❑ Character set
❑ Keywords
❑ Compilation and Execution of a program
❑ Hello Program
❑ Constants
❑ Data Types
❑ TURBO- C Software
3. Character set
➢ Alphabets A to Z
➢ Digits 0 to 9
➢ Special Character ~ ! ; ‘ , . /
➢ White Space Character Tab , New Line , From Feed
4. Keywords
auto double if static break else
int struct case enum long switch
char extern near typedef const float
register union continue far return unsigned
default for short void do goto
signed while
6. ➢ The c file save to the file.c
➢ The first file.c is compiler and to convert to the file.obj
➢ The file.obj is linked to the CPU and convert to the file.lib
➢ And than last to file.exe
➢ exe file is one type of software a
7. Hello Program
#include<conio.h> //header file
#include<stdio.h>
void main() //main function
{
printf(“Hello World “); print to the hello world
getch();
}
Output
Hello World
8. Constants
➢ There are two type of constants
1. Numeric constants
2. Non numeric constants
9. Numeric constants
➢ numeric constants is number type of constants
➢ it can be integer and real number are
➢Valid integer constants
15 -345 0
➢ Non valid integer constants
15 76 $40
10. Non numeric constants
➢ there are two non numeric constants in here
➢ Character constants
➢ String constants
11. String constants
➢ string constants is a sequence of character which are enclosed in double quotes
kartik
computer
345
b
12. Data type
Type Size Rangs
int 2 bytes -32768 to 32767
double 8 bytes 1.7e-308 to 1.7e+308
char 1 bytes -128 to 127
float 4 bytes 3.4e-38 to 3.4e+38