Beruflich Dokumente
Kultur Dokumente
Course instructor :
Prof. Kumar Anand Singh
(Asst. Professor, EC, MEFGI)
Course assistances:
Prof. Hetal Dave
(Asst. Professor, EC, MEFGI)
Mr. Saumil Vora
(Student, PG-VLSI, 1st year)
Topic
Date
Total Hours
TH (hrs.)
PR(hrs.)
1.
2.
C Fundamentals
3.
I/O Functions
4.
Control statements
5.
Arrays
6.
7.
Functions
8.
9.
Pointers
10.
11.
File handling
12.
13.
Introduction to Embedded C
40
20
Alphabets
Digits
Special Symbol
A to Z
a to z
0 to 9
Variables
C
Constants
Primary
Integer
Real
Character
Secondary
Array
Pointer
Structure
Union
Enum
C Keywords
Inbuilt variables with specific
meaning.
Also known as Reserved
Words
Constant is anInteger
Entity that
doesnt change
Constants
Must Have
Must Not Have
One digit.
The allowable range for
decimal point.
integer constants is commas or blanks.
32768 to 32767.
Real/Floating Constants
Must Have
One digit.
Decimal Point
The allowable range for
Real constants is 4 times
more than Integer
Character Constants
Must Have
Single character, digit or Symbol
Maximum length is 1
Basic C Program
Content :
1. C Basic program with output & explanation
2. Steps to write C Program
3. Creation, Compilation & Execution
4. Basic Structure of C Program
Command
Explanation
2.
int main()
3.
4.
/* comments */
5.
printf(Hello_World!
Prints the information under .
);
6.
getch();
7.
return 0;
My First Program
This is a preprocessor
command that includes
standard input output
header file(stdio.h) from
the C library before
compiling a C program
#include <stdio.h>
int main()
{
/* Our first simple C basic program */
printf(Hello World! );
getch();
Wont be compiled
By compiler (hidden)
return 0;
}
Documentation section
/* Author : Kumar Anand Singh */
Link Section
Definition Section
Global declaration
Function prototype
declaration
Main function
User defined function
fscanf
printf
Formatted Write
scanf
Formatted Read
fclose
Close File
fopen
Open File
remove
Remove File
rename
Rename File
getc
getchar
Read Character
gets
Read String
putc
putchar
Write Character
puts
Write String
Function
Description
clrscr()
getch()
getche()
textcolor()
textbackgr
ound()
Size of memory is
allocated at Run Time
getch();
return(0);