SlideShare uma empresa Scribd logo
1 de 25
Baixar para ler offline
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

Mais conteúdo relacionado

Mais procurados

ARCoreアプリを作ってみよう
ARCoreアプリを作ってみようARCoreアプリを作ってみよう
ARCoreアプリを作ってみようichirokato5
 
Latihan soal UAS kelas 9 semester 1
Latihan soal UAS kelas 9 semester 1Latihan soal UAS kelas 9 semester 1
Latihan soal UAS kelas 9 semester 1ilmikharisah
 
Unityでソーシャルログイン機能を実装してみた
Unityでソーシャルログイン機能を実装してみたUnityでソーシャルログイン機能を実装してみた
Unityでソーシャルログイン機能を実装してみた昭仁 賀好
 
【Unite 2017 Tokyo】ゲームサウンドを支えるCRIWARE組込み事例
【Unite 2017 Tokyo】ゲームサウンドを支えるCRIWARE組込み事例【Unite 2017 Tokyo】ゲームサウンドを支えるCRIWARE組込み事例
【Unite 2017 Tokyo】ゲームサウンドを支えるCRIWARE組込み事例Unite2017Tokyo
 
ワンランク上のゲームデザイン・レベルデザイン・UIデザインを考える 「コンテキスト」「コンフリクト」「コントラスト」デザイン
ワンランク上のゲームデザイン・レベルデザイン・UIデザインを考える 「コンテキスト」「コンフリクト」「コントラスト」デザインワンランク上のゲームデザイン・レベルデザイン・UIデザインを考える 「コンテキスト」「コンフリクト」「コントラスト」デザイン
ワンランク上のゲームデザイン・レベルデザイン・UIデザインを考える 「コンテキスト」「コンフリクト」「コントラスト」デザインKouji Ohno
 

Mais procurados (7)

ARCoreアプリを作ってみよう
ARCoreアプリを作ってみようARCoreアプリを作ってみよう
ARCoreアプリを作ってみよう
 
Latihan soal UAS kelas 9 semester 1
Latihan soal UAS kelas 9 semester 1Latihan soal UAS kelas 9 semester 1
Latihan soal UAS kelas 9 semester 1
 
Unityでソーシャルログイン機能を実装してみた
Unityでソーシャルログイン機能を実装してみたUnityでソーシャルログイン機能を実装してみた
Unityでソーシャルログイン機能を実装してみた
 
【Unite 2017 Tokyo】ゲームサウンドを支えるCRIWARE組込み事例
【Unite 2017 Tokyo】ゲームサウンドを支えるCRIWARE組込み事例【Unite 2017 Tokyo】ゲームサウンドを支えるCRIWARE組込み事例
【Unite 2017 Tokyo】ゲームサウンドを支えるCRIWARE組込み事例
 
ワンランク上のゲームデザイン・レベルデザイン・UIデザインを考える 「コンテキスト」「コンフリクト」「コントラスト」デザイン
ワンランク上のゲームデザイン・レベルデザイン・UIデザインを考える 「コンテキスト」「コンフリクト」「コントラスト」デザインワンランク上のゲームデザイン・レベルデザイン・UIデザインを考える 「コンテキスト」「コンフリクト」「コントラスト」デザイン
ワンランク上のゲームデザイン・レベルデザイン・UIデザインを考える 「コンテキスト」「コンフリクト」「コントラスト」デザイン
 
【Unity道場 2016】パーティクル講座
【Unity道場 2016】パーティクル講座【Unity道場 2016】パーティクル講座
【Unity道場 2016】パーティクル講座
 
Bakteriyofajlar
BakteriyofajlarBakteriyofajlar
Bakteriyofajlar
 

Destaque

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 AnswerVineet Kumar Saini
 
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
 

Destaque (19)

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
 
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
 

Semelhante a 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
 

Semelhante a 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
 

Mais de 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
 

Mais de 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
 

Último

Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...apidays
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelDeepika Singh
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Victor Rentea
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...apidays
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...Zilliz
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Victor Rentea
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Jeffrey Haguewood
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusZilliz
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdfSandro Moreira
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfOrbitshub
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Zilliz
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodJuan lago vázquez
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityWSO2
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Angeliki Cooney
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistandanishmna97
 

Último (20)

Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 

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.