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

Why is java used in embedded systems?

0 Answers  


How does input/output bus functions?

0 Answers  


What is something substantive that you've done to improve as a developer in your career?

0 Answers  


What is the repository pattern? Why are patterns important?

0 Answers  


Explain what is interrupt latency? How can you reduce it?

0 Answers  


Discuss the concept of yagni and explain something you did recently that adhered to this practice.

0 Answers  


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

0 Answers  


Please explain what is interrupt latency? How can you reduce it?

0 Answers  


Tell me what are the uses of the keyword volatile?

0 Answers  


How can you ensure that debugging a program while it's being used will not affect its functionality?

0 Answers  


What is the difference between asynchrony and concurrency?

0 Answers  


What is the scope of a function that is declared as static?

0 Answers  


Categories