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

Write a program to show the functionality of power-save super loop.

0 Answers  


Explain scope of static variables?

0 Answers  


While writing interrupt handlers (ISR), which are points needed to be considered ?

5 Answers   Broadcom, nvidia,


How are macros different from functions?

0 Answers  


What is inversion of control?

0 Answers  


What are the 4 types of inheritance relationship?

0 Answers  


Accessing fixed memory locations

0 Answers  


How are local and global variables are allocated by compiler.

0 Answers  


How does combination of functions reduce memory requirements in embedded systems?

0 Answers  


What is the volatile keyword used for?

0 Answers  


What is kernel paging?

0 Answers  


Tell me what is the need for dmac in es?

0 Answers  


Categories