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
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 |
what is the command/instruction in ARM that does not do anything or does not execute any instruction ? (except NOP instruction)
Tell me what is rtos?
hi i want to learn embedded system course. can anyone tel me which training center is best in chennai to learn embedded system? plz help me
Why do we need virtual device drivers when we have physical device drivers?
Tell me what are the functional requirements that are used in the embedded systems?
What is the purpose of using critical sections?
Tell me whether we can use semaphore or mutex or spinlock in interrupt context in linux kernel?
Would you call yourself a craftsman (craftsperson) and what does that word mean to you?
Describe, in as much detail as you think is relevant, as deeply as you can, what happens when I type "cnn.com" into a browser and press "go".
Explain what are the uses of the keyword static?
Discuss the concept of yagni and explain something you did recently that adhered to this practice.
What is mutex precisely used for?