Semester : SEMESTER 6
Subject : Embedded System
Year : 2018
Term : MARCH
Scheme : 2015 Full Time
Course Code : EC 308
Page:28
Use of Control Structures, loops and Conditions
* Control Structures and loops
٠ Examples- while, do-while, break and for
* Conditional Statements examples
* if, if- else, else - if and switch - case)
* Makes tasks simple for the program flow Design
Use of Data Structures _ Data structure
- A way of organizing large amounts of data.
_ A data elements‘collection
_ Data element in a structure identified and accessed with the help of a few pointers and/or
indices and/or functions.
Standard Data structure
* Queue
* Stack
* Array — one dimensional as a vector
* Multidimensional
٠ List
* Tree
Use of Objects
_ Objects bind the data fields and methods to manipulate those fields
_ Provide inheritance, method overloading, overriding and interfacing
_ Many other features for ease in programming
_ Objects reusability
Advantage of using C for Programming C
*Procedure oriented language (No objects)
¢ Provision of inserting the assembly language codes in between (called inline assembly) to
obtain a direct hardware control.
٠ A large program in =C‘splits into the declarations for variables, functions and data
structure, simpler functional blocks and statements.