|
C-Language
Duration:
1 Month
·
C Preliminaries
v
Development
of C and its features
v
C’s
character set
v
Identifier
ss
v
Keyword
v
Token
v
C
Program structure
v
Executing
C Program
·
Constants and Variables
v
Variables
v
Data
Type
v
Qualifiers:
v
unsigned
and long
v
const
and volatile
v
Escape
sequence
v
Constants
v
Declarations,
definition and initialization
v
Conversion
v
Enumeration
·
Input and Output
v
Formatted
and unformatted I/O
v
Unformatted
I/O – getchar, putchar
v
Formatted
I/O – scanf, printf
v
Formatting
float
v
Left
– right justification
v
Rounding
and truncation
v
Cleaning
input buffer(stdin)
v
Cleaning
output buffer(stdout)
·
Operators
v
Classification
of operators
v
Binary
operators
v
Ternary
operators
v
Pre
and post increment and decrement operators
v
Precedence
of operators
v
Comma
operators
·
Branching
v
‘if’
statement
v
‘if
– else’ statement
v
nested
‘if’
v
Multi
– way decision with ‘if – else – if’ ladder
v
‘switch’
statement
v
‘break’
statement
v
‘goto’
statement
·
Looping
v
‘for’
loop
v
‘while’
loop
v
‘do
. . . while’ loop
v
nested
loops
v
‘continue’
statement
v
infinite
loops
·
Arrays
v
1 –
Dimensional arrays
v
multi
– dimensional arrays
·
Strings
v
Declaring
and defining strings
v
Reading
a string with scanf
v
Standard
C library string functions
v
Strlen(),
string length
v
Strcm(),string
comparison
v
Strcpy(),
string copy
v
Strcat(),
string concatenation
v
String
– to – integer conversion : atoi
·
Functions
v
Function
idea and its advantages
v
Function
declaration and definition
v
Mathematical
functions
v
Header
files
v
Library
functions
v
User
– define functions
v
Calling
a function, passing parameters : actual and formal
v
Call
– by – value and Call – by – reference
v
Pre
– processor
v
Command
– line arguments
·
Structures
v
User
– defined data types
v
Structures:
An introduction
v
Array
of structures
v
Union
·
File I/O via streams
v
ANSI
stream I/O functions
v
Stream
initiation(fopen, fclose, freoen)
v
Character
I/O (fgetc, fputc)
v
End
of file (feof, ferror, rewind, clearer, EOF)
v
Line
I/O (fgetc,fputc)
v
Formatting
string I/O (sprintf, sscanf)
v
Formatted
file I/O (fprintf, fscanf)
v
Structure
I/O (fwrite, fread)
v
Stream
flushing(fflush, setvbuf)
v
Random
– access ( ftell, fseek)
v
Pushing
– back a character (ungetc)
·
Pointers
v
Declaring
pointers
v
Pointer
arithmetic
v
Pointer
to pointer
v
Pointers
and Array
v
Pointer
to function
v
Array
of pointers
v
Dynamic
memory allocation
v
Equivalence
of pointers and arrays
v
Heap
v
‘realloc’
resizing mallocated chunk
v
‘calloc’,
clearing mallocated memory
v
pointer
– to – structure
v
passing
structure as argument to function
|