Polytechnic, Department of Electrical Engineering,

advertisement

The Maharaja Sayajirao University of Baroda

Polytechnic,

Department of Electrical Engineering,

YEAR II

Semester I

Near Shastri Bridge, Fatehgunj, Vadodara-390001, <<e-mail ID>>

Electronics and Communication : (Higher Payment Program)

CORE/Elective/Foundation 1:

ELE3302 : Programming With C

OBJECTIVES:

UNIT-I

UNIT-II

UNIT-III

UNIT-IV

COURSE CONTENT / SYLLABUS

Overview Of ‘C’

1.1

Introducing ‘C’

1.1(1) Character Set In ‘C’

1.1(2) Punctuation & Special Characters.

1.1(3) C Key Words.

1.2

1.1(4) General Form Of ‘C’ Function

Operators In ‘C’

1.2.1

Arithmetic Operator.

1.2.2

Relational Operator.

1.2.3

Logical Operator.

1.2.4

Bitwise Operator.

1.2.5

The ? Operator.

1.3

Variables

1.3.1

Types Of Variables

1.3.2

Char ; Int ; Short Int; Unsigned Int; Long Int; Float Int : Double.

1.3.3

Declaration Of Variables.

1.3.4

Storage Classes

1.3.5

Auto ;Static;Register ;External ;Global ;Local

1.3.6

Scope Of Storage Classes.

C Standard Library Functions

2.1

2.2

Character Input - Output Function

Getchar () ; Gets (); Putchar (); Puts (); Printf (); Scanf ();

Text. Character Utility Function.

2.3

2.4

Strlen () ; Strcpy (); Strcat (); Strcomp (); A To I ();Upper(); Lower ().

File I/O Function :- Creat (); T Open (); F Close (); F Gets (); Fput ()

Memory Management Function : Malloc () ; Frac ()

Control Statements & Loops :-

3.1

The If Statement

3.2

3.3

3.4

3.5

3.6

3.7

3.8

3.9

3.10

3.11

3.12

The If-Else

The If-Else-If Ladder Statement.

The Switch-Case-Statement.

The Continue Statement.

The Return Statement.

The For Loop.

The While Loop.

The Do-While Loop

The Break Statement.

The Exit ( ) Function.

Labels And Go To

Pointers :-

4.1

4.2

4.3

Operator Of Pointers (‘&’ And ‘*’)

Pointer As Address

Pointer Asignment.

ACADEMIC YEAR

2015-2016

CREDIT

HOURS -

-

--

--

--

--

UNIT-V

UNIT-VI

4.4

4.5

Pointer Expression->

4.4.1

Pointer Arithmatic

4.4.2

Pointer Comparision.

Pointer & Arrays.

4.5 1.

Pointers To Character Arrays.

4.5.2.

Pointers To General Arrays.

4.5.3.

Pointers To Pointers.

4..5.4.

Pointers To Functions.

Arrays :-

6.1

6.2

6.3

6.4

6.5

6.6

5.1

5.2

Single, Two & Multidimentional Array ;

Arrays V/S Pointer In Multidimentional Arrays.

5.3

Allocated Arrays.

Structures & Unions :-

Declaration Of Structures.

Referencing Structure Elements.

Arrays Of Structures.

Passing Structures To Functions.

Array And Structures Within Structures.

Union Declaration

File Handling In 'C'

UNIT-VII

UNIT-VIII

Basic Data Structures Used In 'C'

REFERENCES

1.

Let us C By Y. Kanetkar

2.

C made EASY By Herbert Schildt - McGraw- Hill

3.

Programming with ANSI C By Balaguruswamy

4.

Understanding C - Brace H. Hunter -BPrB

5.

The C Programming Language - Kernighan & Ritchie.

--

--

--

--

Download