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.
Introduction
0.5
1.
Basic Structure
0.5
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
Format String :
integer (%d)
float (%f)
character (%c)
string (%s)
Variables
Syntax of getchar() is
int getchar(void);
For example:
char a;
a= getchar();
gets()
getchar Vs getche Vs getch
getch() : It reads a character and never wait for Enter key. Just
gets processed after getting any key pressed. And it never
echoes the character on screen which u pressed.
Syntax of gets is
char *gets(char *s);
printf
Escape sequence:
Escape sequence is a pair of character which performs specific operations.
Conversion specification:
Escape
Sequence
Meaning
\n
New line
\t
Tab
\b
Backspace
\a
Bell
\o
null character
\?
\\
Conversion Meaning
character
%d
%i
%f
%c
single character
%e
%g
Print Slash
%s
String
%x
hexadecimal integer
%u
putchar
putchar function displays a single character on the screen.
prototype:
int putchar(int c);
puts
used to display a string on a
standard output device.
It inserts a newline
character at the end of each
string it displays.
It returns non-negative on
success, or EOF on failure.