SlideShare a Scribd company logo
1 of 71
Download to read offline
Master Class on
“Embedded C “
Programming
Master Class on
“Embedded C “
Programming
Programming
Programming
mk
DAY 3/30
What you will learn Today
 Structure of a C Program
 Escape sequence
 Format Specifier
 Format Specifier
 C Datatypes and Variables
 Variable Scopes
 Sizeoff Operator
About Pantech Prolabs India Pvt Ltd
 Started in the Year 2004
 Lab equipments and Sensor Interface
 Manufacturer of Brainsense EEG Headset
 Reconfigurable Algorithms on AI
 Manufacture of AI development Boards
 Power electronics, Fuel cell and Renewable Energy trainers
Power electronics, Fuel cell and Renewable Energy trainers
www.pantechsolutions.net
Vision
To help 10 Million students around the
globe to learn technology in a easy way
About me
https://www.linkedin.com/in/jeevarajan/
My Primary Expertise
Microcontroller Architecture: 8051,PIC,AVR,ARM,MSP430,PSOC3
DSP Architecture: Blackfin,C2000,C6000,21065L Sharc
FPGA: Spartan,Virtex,Cyclone
Image Processing Algorithms: Image/Scene Recognition, Machine Learning, Computer Vision, Deep Learning,
Pattern Recognition, Object Classification ,Image Retrieval, Image enhancement and denoising.
Neural Networks : SVM,RBF,BPN
Cryptography :RSA,DES,3DES,Ellipti curve,Blowfish,Diffe Hellman
Compilers: Keil,Visual DSP++,CCS, Xilinx Platform studio,ISE, Matlab, Open CV
www.pantechsolutions.net
Announcement
 Attendance Link at anytime of the session.
 Minimum attendance required for an E-Certificate is 25 Days. Attendance
link will be closed at the end of the event.
 For Internship Candidates no attendance required ,it will be accessed from
the LMS Portal. (learn.pantechsolutions.net)
 Recorded Video Streaming for LAB classes to improve Learning
 Recorded Video Streaming for LAB classes to improve Learning
Experience or if I am not able to present on Live.
 PPT in facebook group and Telegram Group
 Source code and projects available download only for Internship canditates
Mindset Lesson for the Day
“Formal Education will make you a living
Self education will make you a fortune”
The best investment is “Investing in Yourself”
www.pantechsolutions.net
For learning hub visit learn.pantechsolutions.net
The best investment is “Investing in Yourself”
More you work on Yourself, Greater the Impact will
be
Are you Ready to learn?
Structure of a C Program
• C program basically consists of the following parts
– Preprocessor Commands
• Inbuilt
• userdefined
– Functions
– Variables
www.pantechsolutions.net
For learning hub visit learn.pantechsolutions.net
– Variables
– Statements & Expressions
– Comments
Structure of a C Program
Structure of a C Program
Escape Sequence
An escape sequence is a sequence of characters used in formatting the output and are not
displayed while printing text on to the screen, each having its own specific function.
Difference between n and r
Difference between n and r
Difference between n and r
Assignment
Commenting
‘C’ data types and variables
Data Types
Representing real world data
Examples of Data in Real world
Based on the real-world data we have two significant data types in C
Data types
Integer Data types -Signed
Integer data are represented by different integer data types
Integer Data types -unsigned
Storage Size of Different data types
Integer Data types -Storage Size and Range
XC8 COMPILER (PIC 8 Bit Microcontrollers)
armcc compiler for 32 bit ARM Microcontrollers
‘C’ integer data types , their storage
sizes and value ranges
CHAR DATATYPES
Range of CHAR Datatypes
Example
Example
Variable Definition
Example
Write a C program to calculate and
print distance from A to C
Steps to write the Program
FORMAT SPECIFIER
Range Calculation
1 byte signed data representation
Example
Example
Char data type range
Char data type range
Unsigned char range
Unsigned char range
Integer data type : short int and
unsigned short int
Range calculation of short int
Range calculation of short int
Range calculation of short int
2 byte unsigned data representation
Integer data type : int and unsigned
int
Integer data type : long and unsigned
long
Variables
Defining Variables
Defining Variables
Syntax : Defining Variables
Variable initialization
This is illegal
This is legal
Rules for naming a variable
C99 reserved keywords
Variable scopes
Variable scopes
sizeof operator
Q & A
Q & A
Thank You
Thank You

More Related Content

Similar to day3.pdf

Deploying and Monitoring Heterogeneous Machine Learning Applications with Cli...
Deploying and Monitoring Heterogeneous Machine Learning Applications with Cli...Deploying and Monitoring Heterogeneous Machine Learning Applications with Cli...
Deploying and Monitoring Heterogeneous Machine Learning Applications with Cli...
Databricks
 
Marek Suplata Projects
Marek Suplata ProjectsMarek Suplata Projects
Marek Suplata Projects
guest14f12f
 
Curriculum Vitae ganesh with photo-1
Curriculum Vitae ganesh with photo-1Curriculum Vitae ganesh with photo-1
Curriculum Vitae ganesh with photo-1
Ganesh Sankar
 
AMIT PATIL- Embedded OS Professional
AMIT PATIL- Embedded OS ProfessionalAMIT PATIL- Embedded OS Professional
AMIT PATIL- Embedded OS Professional
Amit Patil
 

Similar to day3.pdf (20)

Resume
ResumeResume
Resume
 
Deploying and Monitoring Heterogeneous Machine Learning Applications with Cli...
Deploying and Monitoring Heterogeneous Machine Learning Applications with Cli...Deploying and Monitoring Heterogeneous Machine Learning Applications with Cli...
Deploying and Monitoring Heterogeneous Machine Learning Applications with Cli...
 
Sudhakar resume_latest
Sudhakar  resume_latest Sudhakar  resume_latest
Sudhakar resume_latest
 
Rajath_Shivananda
Rajath_ShivanandaRajath_Shivananda
Rajath_Shivananda
 
A STUDY OF AN ENTRENCHED SYSTEM USING INTERNET OF THINGS
A STUDY OF AN ENTRENCHED SYSTEM USING INTERNET OF THINGSA STUDY OF AN ENTRENCHED SYSTEM USING INTERNET OF THINGS
A STUDY OF AN ENTRENCHED SYSTEM USING INTERNET OF THINGS
 
Scalable constrained spectral clustering
Scalable constrained spectral clusteringScalable constrained spectral clustering
Scalable constrained spectral clustering
 
Bindu_Resume
Bindu_ResumeBindu_Resume
Bindu_Resume
 
Rashmi_Resume
Rashmi_ResumeRashmi_Resume
Rashmi_Resume
 
BEST DSSSB COMPUTER SCIENCE COACHING CENTER IN DELHI, UTTAM NAGAR
BEST DSSSB COMPUTER SCIENCE COACHING CENTER IN DELHI, UTTAM NAGARBEST DSSSB COMPUTER SCIENCE COACHING CENTER IN DELHI, UTTAM NAGAR
BEST DSSSB COMPUTER SCIENCE COACHING CENTER IN DELHI, UTTAM NAGAR
 
TAXTRON Profile_PDF
TAXTRON Profile_PDFTAXTRON Profile_PDF
TAXTRON Profile_PDF
 
Penglun_Li
Penglun_LiPenglun_Li
Penglun_Li
 
Presentation1.2.pptx
Presentation1.2.pptxPresentation1.2.pptx
Presentation1.2.pptx
 
Marek Suplata Projects
Marek Suplata ProjectsMarek Suplata Projects
Marek Suplata Projects
 
Artificial Intelligence in practice - Gerbert Kaandorp - Codemotion Amsterdam...
Artificial Intelligence in practice - Gerbert Kaandorp - Codemotion Amsterdam...Artificial Intelligence in practice - Gerbert Kaandorp - Codemotion Amsterdam...
Artificial Intelligence in practice - Gerbert Kaandorp - Codemotion Amsterdam...
 
Anand_Agrawal_CV.pdf
Anand_Agrawal_CV.pdfAnand_Agrawal_CV.pdf
Anand_Agrawal_CV.pdf
 
Curriculum Vitae ganesh with photo-1
Curriculum Vitae ganesh with photo-1Curriculum Vitae ganesh with photo-1
Curriculum Vitae ganesh with photo-1
 
AMIT PATIL- Embedded OS Professional
AMIT PATIL- Embedded OS ProfessionalAMIT PATIL- Embedded OS Professional
AMIT PATIL- Embedded OS Professional
 
Automatic generation of hardware memory architectures for HPC
Automatic generation of hardware memory architectures for HPCAutomatic generation of hardware memory architectures for HPC
Automatic generation of hardware memory architectures for HPC
 
BigDL webinar - Deep Learning Library for Spark
BigDL webinar - Deep Learning Library for SparkBigDL webinar - Deep Learning Library for Spark
BigDL webinar - Deep Learning Library for Spark
 
Build 2019 Recap
Build 2019 RecapBuild 2019 Recap
Build 2019 Recap
 

Recently uploaded

Hospital management system project report.pdf
Hospital management system project report.pdfHospital management system project report.pdf
Hospital management system project report.pdf
Kamal Acharya
 
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
HenryBriggs2
 
Query optimization and processing for advanced database systems
Query optimization and processing for advanced database systemsQuery optimization and processing for advanced database systems
Query optimization and processing for advanced database systems
meharikiros2
 
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
AldoGarca30
 

Recently uploaded (20)

Path loss model, OKUMURA Model, Hata Model
Path loss model, OKUMURA Model, Hata ModelPath loss model, OKUMURA Model, Hata Model
Path loss model, OKUMURA Model, Hata Model
 
UNIT 4 PTRP final Convergence in probability.pptx
UNIT 4 PTRP final Convergence in probability.pptxUNIT 4 PTRP final Convergence in probability.pptx
UNIT 4 PTRP final Convergence in probability.pptx
 
Hospital management system project report.pdf
Hospital management system project report.pdfHospital management system project report.pdf
Hospital management system project report.pdf
 
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKARHAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
 
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
 
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxHOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
 
School management system project Report.pdf
School management system project Report.pdfSchool management system project Report.pdf
School management system project Report.pdf
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS Lambda
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
 
Computer Networks Basics of Network Devices
Computer Networks  Basics of Network DevicesComputer Networks  Basics of Network Devices
Computer Networks Basics of Network Devices
 
Query optimization and processing for advanced database systems
Query optimization and processing for advanced database systemsQuery optimization and processing for advanced database systems
Query optimization and processing for advanced database systems
 
Signal Processing and Linear System Analysis
Signal Processing and Linear System AnalysisSignal Processing and Linear System Analysis
Signal Processing and Linear System Analysis
 
Introduction to Geographic Information Systems
Introduction to Geographic Information SystemsIntroduction to Geographic Information Systems
Introduction to Geographic Information Systems
 
Convergence of Robotics and Gen AI offers excellent opportunities for Entrepr...
Convergence of Robotics and Gen AI offers excellent opportunities for Entrepr...Convergence of Robotics and Gen AI offers excellent opportunities for Entrepr...
Convergence of Robotics and Gen AI offers excellent opportunities for Entrepr...
 
AIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsAIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech students
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdf
 
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
 
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptxS1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
 
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
 
8th International Conference on Soft Computing, Mathematics and Control (SMC ...
8th International Conference on Soft Computing, Mathematics and Control (SMC ...8th International Conference on Soft Computing, Mathematics and Control (SMC ...
8th International Conference on Soft Computing, Mathematics and Control (SMC ...
 

day3.pdf