C language
Introduction part 2
PANCHAL KARTIK J
STUDENT OF COMPUTER ENGINEERING
Topic
❑ Character set
❑ Keywords
❑ Compilation and Execution of a program
❑ Hello Program
❑ Constants
❑ Data Types
❑ TURBO- C Software
Character set
➢ Alphabets A to Z
➢ Digits 0 to 9
➢ Special Character ~ ! ; ‘ , . /
➢ White Space Character Tab , New Line , From Feed
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
Compilation and Execution of a program
Source file object file EXE file
library file
Compiler linker
➢ 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
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
Constants
➢ There are two type of constants
1. Numeric constants
2. Non numeric constants
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
Non numeric constants
➢ there are two non numeric constants in here
➢ Character constants
➢ String constants
String constants
➢ string constants is a sequence of character which are enclosed in double quotes
kartik
computer
345
b
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
TURBO- C Software
The download to the TURBO - C software
www.turboc.com/download
C language 1

C language 1

  • 1.
    C language Introduction part2 PANCHAL KARTIK J STUDENT OF COMPUTER ENGINEERING
  • 2.
    Topic ❑ Character set ❑Keywords ❑ Compilation and Execution of a program ❑ Hello Program ❑ Constants ❑ Data Types ❑ TURBO- C Software
  • 3.
    Character set ➢ AlphabetsA to Z ➢ Digits 0 to 9 ➢ Special Character ~ ! ; ‘ , . / ➢ White Space Character Tab , New Line , From Feed
  • 4.
    Keywords auto double ifstatic 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
  • 5.
    Compilation and Executionof a program Source file object file EXE file library file Compiler linker
  • 6.
    ➢ The cfile 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> //headerfile #include<stdio.h> void main() //main function { printf(“Hello World “); print to the hello world getch(); } Output Hello World
  • 8.
    Constants ➢ There aretwo type of constants 1. Numeric constants 2. Non numeric constants
  • 9.
    Numeric constants ➢ numericconstants 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 ➢ stringconstants is a sequence of character which are enclosed in double quotes kartik computer 345 b
  • 12.
    Data type Type SizeRangs 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
  • 13.
    TURBO- C Software Thedownload to the TURBO - C software www.turboc.com/download