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 the function of dma controlled in embedded system?

0 Answers  


What is an embedded system?

0 Answers  


Explain the difference between testing and verification?

0 Answers  


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

1 Answers  


What do you do to stay abreast of the latest technologies and tools?

0 Answers  


Explain the concept of separation of concerns and it's pros and cons.

0 Answers  


Tell me what is top half & bottom half of a kernel?

0 Answers  


Is tasklets or workqueues or softirqs are scheduled by the scheduler?

2 Answers  


What are the languages used in embedded system?

0 Answers  


What is the order of calling for the constructors and destructors in case of objects of inherited classes?

0 Answers  


Why does pre-emptive multi-threading used to solve the central controller problem?

0 Answers  


How many types of ipc mechanism you know?

0 Answers  


Categories