Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


look at following code

void foo(void) {
unsigned int a = 6;
int b = -20;
int c = (a+b > 6) ? 1:0;
}
o/p is 1 why
explain promotion rules



look at following code void foo(void) { unsigned int a = 6; int b = -20; int c = (a+b &g..

Answer / nitin sharma

Compiler will convert variable b to unsigned int b and then do the addition. Which will be greater than 6 and you got 1.

Is This Answer Correct ?    38 Yes 2 No

Post New Answer

More Embedded Systems AllOther Interview Questions

What is dma in an embedded system?

0 Answers  


Who are the gang of four? Why should you care?

0 Answers  


Tell me what is the difference between hardware design and software design?

0 Answers  


Infinite loops often arise in embedded systems. How does you code an infinite loop in c?

0 Answers  


What happens when recursion functions are declared inline?

0 Answers  


How do you identify hardware errors?

0 Answers  


Why are patterns important?

0 Answers  


Explain the differences between analytical and computational modeling?

0 Answers  


What is spin lock?

0 Answers  


Tell me what could be the reasons for a system to have gone blank and how would you debug it?

0 Answers  


What are the 4 types of inheritance relationship?

0 Answers  


Tell me what is the purpose of using critical sections?

0 Answers  


Categories