SlideShare ist ein Scribd-Unternehmen logo
1 von 25
Downloaden Sie, um offline zu lesen
Embedded Systems
Eng. Mohammed Sokkaree
Agenda
•   Introduction to embedded Systems
•   Why embedded C
•   Interview questions
•   Q&A
Computing Systems
What’s ES?
• System designed to do one or a few dedicated
  and/or specific functions.
• combination of computer hardware and software
 ▫   Mp3 player
 ▫   Mobile
 ▫   Medical testing systems
 ▫   Anti-Lock Brakes
Embedded SW
•   Portability
•   Optimization
•   Quality
•   Readability
•   Complexity
•   HW Compatibility “ HW knowledge”
•   Min. Resources
Why embedded C?
Question 1
   RTD
Question 1
• Real time System
 ▫ Hard
 ▫ Soft
• CBT
Question 2
   SWE
Question 2
• Testing
 ▫ Types of testing
• Debugging
Question 3
 Pointers
Pointers Pointers & Pointers
• Using the variable a, give definitions for the
  following:
  ▫  a) An integer
  ▫ b) A pointer to an integer
  ▫ c) A pointer to a pointer to an integer
  ▫ d) An array of 10 integers
  ▫ e) An array of 10 pointers to integers
  ▫ f) A pointer to an array of 10 integers
  ▫ g) A pointer to a function that takes an integer as an
    argument and returns an integer
  ▫ h) An array of ten pointers to functions that take an
    integer argument and return an integer
Answer
• a) int a;           // An integer
• b) int *a;          // A pointer to an integer
• c) int **a;        // A pointer to a pointer to an integer
• d) int a[10];      // An array of 10 integers
• e) int *a[10];     // An array of 10 pointers to integers
• f) int (*a)[10];    // A pointer to an array of 10 integers
• g) int (*a)(int); // A pointer to a function a that takes
  an                 integer argument and returns an
  integer
• h) int (*a[10])(int); // An array of 10 pointers to
  functions that take an integer argument and return an
  integer
Question 4
  Macros
Question 4
      Functions        Function like
                         macros
              How it works
             Input arguments
Question 4 (Cont.)
• Write a macro to set the MSB



#define MSB(X) ((X) | (1 << ((sizeof(X)<<3) -1))
Question 5
 Variables
Question 5
•   Local
•   Global
•   Static
•   Extern
Question 6
 Tracing
Question 6

int main()                      X   Y
                                2   1
{
int x=1,y=1;                    3   1
for(;y;printf("%d %dn",x,y))   4   1
y=x++<=5;                       5   1
return 0;                       6   1
                                7   0
}
Thank you
Connect via LinkedIn

 http://eg.linkedin.com/in/engmohammed
Hi all,
   I have a basic C programming query.
  For the program,
  #define MAX(x,y) (x)>(y)?(x):(y)
  void main( )
  {
  int i=10, j=5, k=0;
  k=MAX(i++,++j);
  printf("%d %d %d",i,j,k);
  }
  I get the output as 12,6,11
  whereas, when I modify the program as below
  int max_fn(a,b);
  void main( )
  {
  int i=10, j=5, k=0;
  k = max_fn(i++,++j);
  printf("%d %d %d",i,j,k);
  }
  int max_fn(a,b)
  {
  return((a)>(b)?(a):(b));
  }
  In this case, I get the output as 11,6,10.
http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html

Weitere ähnliche Inhalte

Was ist angesagt? (20)

Kotlin
KotlinKotlin
Kotlin
 
Top C Language Interview Questions and Answer
Top C Language Interview Questions and AnswerTop C Language Interview Questions and Answer
Top C Language Interview Questions and Answer
 
TDD in C - Recently Used List Kata
TDD in C - Recently Used List KataTDD in C - Recently Used List Kata
TDD in C - Recently Used List Kata
 
Compiler Construction
Compiler ConstructionCompiler Construction
Compiler Construction
 
Chapitre 1- Fiche de Cour.pdf
Chapitre 1- Fiche de Cour.pdfChapitre 1- Fiche de Cour.pdf
Chapitre 1- Fiche de Cour.pdf
 
Qt programming-using-cpp
Qt programming-using-cppQt programming-using-cpp
Qt programming-using-cpp
 
CSharp Presentation
CSharp PresentationCSharp Presentation
CSharp Presentation
 
Cours algorithme
Cours algorithmeCours algorithme
Cours algorithme
 
C++ Overview
C++ OverviewC++ Overview
C++ Overview
 
Partie 12: Polymorphisme — Programmation orientée objet en C++
Partie 12: Polymorphisme — Programmation orientée objet en C++Partie 12: Polymorphisme — Programmation orientée objet en C++
Partie 12: Polymorphisme — Programmation orientée objet en C++
 
C notes
C notesC notes
C notes
 
Cour d'informatique c++
Cour d'informatique c++Cour d'informatique c++
Cour d'informatique c++
 
functions of C++
functions of C++functions of C++
functions of C++
 
Cours fondement du multimedia
Cours fondement du multimediaCours fondement du multimedia
Cours fondement du multimedia
 
Constructors and Destructor in C++
Constructors and Destructor in C++Constructors and Destructor in C++
Constructors and Destructor in C++
 
algorithme chapitre 1 et 2 (1).pptx
algorithme chapitre 1 et 2 (1).pptxalgorithme chapitre 1 et 2 (1).pptx
algorithme chapitre 1 et 2 (1).pptx
 
C# Constructors
C# ConstructorsC# Constructors
C# Constructors
 
Theory of programming
Theory of programmingTheory of programming
Theory of programming
 
Introduction to cpp
Introduction to cppIntroduction to cpp
Introduction to cpp
 
Cours algorithmique02
Cours algorithmique02Cours algorithmique02
Cours algorithmique02
 

Andere mochten auch

C programming interview questions
C programming interview questionsC programming interview questions
C programming interview questionsadarshynl
 
Manufacturing Automation and Digitization
Manufacturing Automation and DigitizationManufacturing Automation and Digitization
Manufacturing Automation and DigitizationHCL Technologies
 
The Internet of Things. Wharton Guest Lecture by Sandeep Kishore – Corporate ...
The Internet of Things. Wharton Guest Lecture by Sandeep Kishore – Corporate ...The Internet of Things. Wharton Guest Lecture by Sandeep Kishore – Corporate ...
The Internet of Things. Wharton Guest Lecture by Sandeep Kishore – Corporate ...HCL Technologies
 
Advanced C Language for Engineering
Advanced C Language for EngineeringAdvanced C Language for Engineering
Advanced C Language for EngineeringVincenzo De Florio
 
HCLT Brochure: Embedded Engineering
HCLT Brochure: Embedded EngineeringHCLT Brochure: Embedded Engineering
HCLT Brochure: Embedded EngineeringHCL Technologies
 
Embedded systems ___vlsi_design
Embedded systems ___vlsi_designEmbedded systems ___vlsi_design
Embedded systems ___vlsi_designsartaj ahmed
 
Digital to analog convertor
Digital to analog convertorDigital to analog convertor
Digital to analog convertorsartaj ahmed
 
Innovation in Medical Devices – Embedded Blood Glucose Meter in Smartphones
Innovation in Medical Devices – Embedded Blood Glucose Meter in SmartphonesInnovation in Medical Devices – Embedded Blood Glucose Meter in Smartphones
Innovation in Medical Devices – Embedded Blood Glucose Meter in SmartphonesHCL Technologies
 
C Programming For Embedded Systems
C Programming For Embedded SystemsC Programming For Embedded Systems
C Programming For Embedded SystemsGanesh Samarthyam
 
Top 10 utilities engineer interview questions and answers
Top 10 utilities engineer interview questions and answersTop 10 utilities engineer interview questions and answers
Top 10 utilities engineer interview questions and answerstonychoper2406
 
Entrepreneurship in a nutshell
Entrepreneurship in a nutshellEntrepreneurship in a nutshell
Entrepreneurship in a nutshellPiTechnologies
 
Standard embedded c
Standard embedded cStandard embedded c
Standard embedded cTam Thanh
 
DIC_video_coding_standards_07
DIC_video_coding_standards_07DIC_video_coding_standards_07
DIC_video_coding_standards_07aniruddh Tyagi
 
whitepaper_mpeg-if_understanding_mpeg4
whitepaper_mpeg-if_understanding_mpeg4whitepaper_mpeg-if_understanding_mpeg4
whitepaper_mpeg-if_understanding_mpeg4aniruddh Tyagi
 

Andere mochten auch (18)

C programming interview questions
C programming interview questionsC programming interview questions
C programming interview questions
 
Manufacturing Automation and Digitization
Manufacturing Automation and DigitizationManufacturing Automation and Digitization
Manufacturing Automation and Digitization
 
The Internet of Things. Wharton Guest Lecture by Sandeep Kishore – Corporate ...
The Internet of Things. Wharton Guest Lecture by Sandeep Kishore – Corporate ...The Internet of Things. Wharton Guest Lecture by Sandeep Kishore – Corporate ...
The Internet of Things. Wharton Guest Lecture by Sandeep Kishore – Corporate ...
 
Advanced C Language for Engineering
Advanced C Language for EngineeringAdvanced C Language for Engineering
Advanced C Language for Engineering
 
HCLT Brochure: Embedded Engineering
HCLT Brochure: Embedded EngineeringHCLT Brochure: Embedded Engineering
HCLT Brochure: Embedded Engineering
 
Embedded systems ___vlsi_design
Embedded systems ___vlsi_designEmbedded systems ___vlsi_design
Embedded systems ___vlsi_design
 
Embedded C workshop
Embedded C workshopEmbedded C workshop
Embedded C workshop
 
Embedded questions
Embedded questionsEmbedded questions
Embedded questions
 
Digital to analog convertor
Digital to analog convertorDigital to analog convertor
Digital to analog convertor
 
Innovation in Medical Devices – Embedded Blood Glucose Meter in Smartphones
Innovation in Medical Devices – Embedded Blood Glucose Meter in SmartphonesInnovation in Medical Devices – Embedded Blood Glucose Meter in Smartphones
Innovation in Medical Devices – Embedded Blood Glucose Meter in Smartphones
 
Embedded Technology
Embedded TechnologyEmbedded Technology
Embedded Technology
 
C Programming For Embedded Systems
C Programming For Embedded SystemsC Programming For Embedded Systems
C Programming For Embedded Systems
 
Top 10 utilities engineer interview questions and answers
Top 10 utilities engineer interview questions and answersTop 10 utilities engineer interview questions and answers
Top 10 utilities engineer interview questions and answers
 
Entrepreneurship in a nutshell
Entrepreneurship in a nutshellEntrepreneurship in a nutshell
Entrepreneurship in a nutshell
 
Standard embedded c
Standard embedded cStandard embedded c
Standard embedded c
 
DIC_video_coding_standards_07
DIC_video_coding_standards_07DIC_video_coding_standards_07
DIC_video_coding_standards_07
 
DVB_Arch
DVB_ArchDVB_Arch
DVB_Arch
 
whitepaper_mpeg-if_understanding_mpeg4
whitepaper_mpeg-if_understanding_mpeg4whitepaper_mpeg-if_understanding_mpeg4
whitepaper_mpeg-if_understanding_mpeg4
 

Ähnlich wie Embedded SW Interview Questions

Expanding the idea of static analysis from code check to other development pr...
Expanding the idea of static analysis from code check to other development pr...Expanding the idea of static analysis from code check to other development pr...
Expanding the idea of static analysis from code check to other development pr...Andrey Karpov
 
Who killed object oriented design?
Who killed object oriented design?Who killed object oriented design?
Who killed object oriented design?Amir Barylko
 
C# 7 development
C# 7 developmentC# 7 development
C# 7 developmentFisnik Doko
 
C# 7.x What's new and what's coming with C# 8
C# 7.x What's new and what's coming with C# 8C# 7.x What's new and what's coming with C# 8
C# 7.x What's new and what's coming with C# 8Christian Nagel
 
Yoyak ScalaDays 2015
Yoyak ScalaDays 2015Yoyak ScalaDays 2015
Yoyak ScalaDays 2015ihji
 
The Challenge of Bringing FEZ to PlayStation Platforms
The Challenge of Bringing FEZ to PlayStation PlatformsThe Challenge of Bringing FEZ to PlayStation Platforms
The Challenge of Bringing FEZ to PlayStation PlatformsMiguel Angel Horna
 
C# 101: Intro to Programming with C#
C# 101: Intro to Programming with C#C# 101: Intro to Programming with C#
C# 101: Intro to Programming with C#Hawkman Academy
 
JS Responsibilities
JS ResponsibilitiesJS Responsibilities
JS ResponsibilitiesBrendan Eich
 
A Replay Approach to Software Validation
A Replay Approach to Software ValidationA Replay Approach to Software Validation
A Replay Approach to Software ValidationJames Pascoe
 
C# What's next? (7.x and 8.0)
C# What's next? (7.x and 8.0)C# What's next? (7.x and 8.0)
C# What's next? (7.x and 8.0)Christian Nagel
 
"Optimization of a .NET application- is it simple ! / ?", Yevhen Tatarynov
"Optimization of a .NET application- is it simple ! / ?",  Yevhen Tatarynov"Optimization of a .NET application- is it simple ! / ?",  Yevhen Tatarynov
"Optimization of a .NET application- is it simple ! / ?", Yevhen TatarynovFwdays
 
270_1_CIntro_Up_To_Functions.ppt
270_1_CIntro_Up_To_Functions.ppt270_1_CIntro_Up_To_Functions.ppt
270_1_CIntro_Up_To_Functions.pptUdhayaKumar175069
 
Survey of programming language getting started in C
Survey of programming language getting started in CSurvey of programming language getting started in C
Survey of programming language getting started in Cummeafruz
 
270 1 c_intro_up_to_functions
270 1 c_intro_up_to_functions270 1 c_intro_up_to_functions
270 1 c_intro_up_to_functionsray143eddie
 
270_1_CIntro_Up_To_Functions.ppt
270_1_CIntro_Up_To_Functions.ppt270_1_CIntro_Up_To_Functions.ppt
270_1_CIntro_Up_To_Functions.pptAlefya1
 

Ähnlich wie Embedded SW Interview Questions (20)

Expanding the idea of static analysis from code check to other development pr...
Expanding the idea of static analysis from code check to other development pr...Expanding the idea of static analysis from code check to other development pr...
Expanding the idea of static analysis from code check to other development pr...
 
Who killed object oriented design?
Who killed object oriented design?Who killed object oriented design?
Who killed object oriented design?
 
C# 7 development
C# 7 developmentC# 7 development
C# 7 development
 
C# 7.x What's new and what's coming with C# 8
C# 7.x What's new and what's coming with C# 8C# 7.x What's new and what's coming with C# 8
C# 7.x What's new and what's coming with C# 8
 
Yoyak ScalaDays 2015
Yoyak ScalaDays 2015Yoyak ScalaDays 2015
Yoyak ScalaDays 2015
 
The Challenge of Bringing FEZ to PlayStation Platforms
The Challenge of Bringing FEZ to PlayStation PlatformsThe Challenge of Bringing FEZ to PlayStation Platforms
The Challenge of Bringing FEZ to PlayStation Platforms
 
C# 101: Intro to Programming with C#
C# 101: Intro to Programming with C#C# 101: Intro to Programming with C#
C# 101: Intro to Programming with C#
 
UNIT 2 LOOP CONTROL.pptx
UNIT 2 LOOP CONTROL.pptxUNIT 2 LOOP CONTROL.pptx
UNIT 2 LOOP CONTROL.pptx
 
C# - What's next
C# - What's nextC# - What's next
C# - What's next
 
JS Responsibilities
JS ResponsibilitiesJS Responsibilities
JS Responsibilities
 
arrays
arraysarrays
arrays
 
A Replay Approach to Software Validation
A Replay Approach to Software ValidationA Replay Approach to Software Validation
A Replay Approach to Software Validation
 
C# What's next? (7.x and 8.0)
C# What's next? (7.x and 8.0)C# What's next? (7.x and 8.0)
C# What's next? (7.x and 8.0)
 
"Optimization of a .NET application- is it simple ! / ?", Yevhen Tatarynov
"Optimization of a .NET application- is it simple ! / ?",  Yevhen Tatarynov"Optimization of a .NET application- is it simple ! / ?",  Yevhen Tatarynov
"Optimization of a .NET application- is it simple ! / ?", Yevhen Tatarynov
 
Exploiting vectorization with ISPC
Exploiting vectorization with ISPCExploiting vectorization with ISPC
Exploiting vectorization with ISPC
 
270_1_CIntro_Up_To_Functions.ppt
270_1_CIntro_Up_To_Functions.ppt270_1_CIntro_Up_To_Functions.ppt
270_1_CIntro_Up_To_Functions.ppt
 
Survey of programming language getting started in C
Survey of programming language getting started in CSurvey of programming language getting started in C
Survey of programming language getting started in C
 
270 1 c_intro_up_to_functions
270 1 c_intro_up_to_functions270 1 c_intro_up_to_functions
270 1 c_intro_up_to_functions
 
270_1_CIntro_Up_To_Functions.ppt
270_1_CIntro_Up_To_Functions.ppt270_1_CIntro_Up_To_Functions.ppt
270_1_CIntro_Up_To_Functions.ppt
 
Part - 2 Cpp programming Solved MCQ
Part - 2  Cpp programming Solved MCQ Part - 2  Cpp programming Solved MCQ
Part - 2 Cpp programming Solved MCQ
 

Mehr von PiTechnologies

Mobile apps & digital marketing for restaurants
Mobile apps & digital marketing for restaurantsMobile apps & digital marketing for restaurants
Mobile apps & digital marketing for restaurantsPiTechnologies
 
SVN session from PiTechnologies
SVN session from PiTechnologies SVN session from PiTechnologies
SVN session from PiTechnologies PiTechnologies
 
Professional employee [PiTechnologies] v1.0
Professional employee [PiTechnologies] v1.0Professional employee [PiTechnologies] v1.0
Professional employee [PiTechnologies] v1.0PiTechnologies
 
10 Things Really Amazing Employees Do
10 Things Really Amazing Employees Do10 Things Really Amazing Employees Do
10 Things Really Amazing Employees DoPiTechnologies
 
Web development meetingup
Web development meetingupWeb development meetingup
Web development meetingupPiTechnologies
 
Developer's got talent iPhone
Developer's got talent iPhoneDeveloper's got talent iPhone
Developer's got talent iPhonePiTechnologies
 
Developer's Got Talent Keynote
Developer's Got Talent KeynoteDeveloper's Got Talent Keynote
Developer's Got Talent KeynotePiTechnologies
 
Innovation in Information Technology
Innovation in Information TechnologyInnovation in Information Technology
Innovation in Information TechnologyPiTechnologies
 
PiTechnologies in cloud computing
PiTechnologies in cloud computingPiTechnologies in cloud computing
PiTechnologies in cloud computingPiTechnologies
 
Pi technologies meeting tips
Pi technologies meeting tipsPi technologies meeting tips
Pi technologies meeting tipsPiTechnologies
 
Arm processor architecture awareness session pi technologies
Arm processor architecture awareness session pi technologiesArm processor architecture awareness session pi technologies
Arm processor architecture awareness session pi technologiesPiTechnologies
 

Mehr von PiTechnologies (11)

Mobile apps & digital marketing for restaurants
Mobile apps & digital marketing for restaurantsMobile apps & digital marketing for restaurants
Mobile apps & digital marketing for restaurants
 
SVN session from PiTechnologies
SVN session from PiTechnologies SVN session from PiTechnologies
SVN session from PiTechnologies
 
Professional employee [PiTechnologies] v1.0
Professional employee [PiTechnologies] v1.0Professional employee [PiTechnologies] v1.0
Professional employee [PiTechnologies] v1.0
 
10 Things Really Amazing Employees Do
10 Things Really Amazing Employees Do10 Things Really Amazing Employees Do
10 Things Really Amazing Employees Do
 
Web development meetingup
Web development meetingupWeb development meetingup
Web development meetingup
 
Developer's got talent iPhone
Developer's got talent iPhoneDeveloper's got talent iPhone
Developer's got talent iPhone
 
Developer's Got Talent Keynote
Developer's Got Talent KeynoteDeveloper's Got Talent Keynote
Developer's Got Talent Keynote
 
Innovation in Information Technology
Innovation in Information TechnologyInnovation in Information Technology
Innovation in Information Technology
 
PiTechnologies in cloud computing
PiTechnologies in cloud computingPiTechnologies in cloud computing
PiTechnologies in cloud computing
 
Pi technologies meeting tips
Pi technologies meeting tipsPi technologies meeting tips
Pi technologies meeting tips
 
Arm processor architecture awareness session pi technologies
Arm processor architecture awareness session pi technologiesArm processor architecture awareness session pi technologies
Arm processor architecture awareness session pi technologies
 

Kürzlich hochgeladen

Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 

Kürzlich hochgeladen (20)

Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 

Embedded SW Interview Questions

  • 2. Agenda • Introduction to embedded Systems • Why embedded C • Interview questions • Q&A
  • 4. What’s ES? • System designed to do one or a few dedicated and/or specific functions. • combination of computer hardware and software ▫ Mp3 player ▫ Mobile ▫ Medical testing systems ▫ Anti-Lock Brakes
  • 5. Embedded SW • Portability • Optimization • Quality • Readability • Complexity • HW Compatibility “ HW knowledge” • Min. Resources
  • 8. Question 1 • Real time System ▫ Hard ▫ Soft • CBT
  • 10. Question 2 • Testing ▫ Types of testing • Debugging
  • 12. Pointers Pointers & Pointers • Using the variable a, give definitions for the following: ▫ a) An integer ▫ b) A pointer to an integer ▫ c) A pointer to a pointer to an integer ▫ d) An array of 10 integers ▫ e) An array of 10 pointers to integers ▫ f) A pointer to an array of 10 integers ▫ g) A pointer to a function that takes an integer as an argument and returns an integer ▫ h) An array of ten pointers to functions that take an integer argument and return an integer
  • 13. Answer • a) int a; // An integer • b) int *a; // A pointer to an integer • c) int **a; // A pointer to a pointer to an integer • d) int a[10]; // An array of 10 integers • e) int *a[10]; // An array of 10 pointers to integers • f) int (*a)[10]; // A pointer to an array of 10 integers • g) int (*a)(int); // A pointer to a function a that takes an integer argument and returns an integer • h) int (*a[10])(int); // An array of 10 pointers to functions that take an integer argument and return an integer
  • 14. Question 4 Macros
  • 15. Question 4 Functions Function like macros How it works Input arguments
  • 16. Question 4 (Cont.) • Write a macro to set the MSB #define MSB(X) ((X) | (1 << ((sizeof(X)<<3) -1))
  • 18. Question 5 • Local • Global • Static • Extern
  • 20. Question 6 int main() X Y 2 1 { int x=1,y=1; 3 1 for(;y;printf("%d %dn",x,y)) 4 1 y=x++<=5; 5 1 return 0; 6 1 7 0 }
  • 21.
  • 23. Connect via LinkedIn http://eg.linkedin.com/in/engmohammed
  • 24. Hi all, I have a basic C programming query. For the program, #define MAX(x,y) (x)>(y)?(x):(y) void main( ) { int i=10, j=5, k=0; k=MAX(i++,++j); printf("%d %d %d",i,j,k); } I get the output as 12,6,11 whereas, when I modify the program as below int max_fn(a,b); void main( ) { int i=10, j=5, k=0; k = max_fn(i++,++j); printf("%d %d %d",i,j,k); } int max_fn(a,b) { return((a)>(b)?(a):(b)); } In this case, I get the output as 11,6,10.