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 |
As you know a vast majority of high performance embedded systems today use risc architecture why?
What are the essential components of embedded system?
What is the need for having multibyte data input and output buffers in case of device ports?
whether the mulitasking and multiprocessing are same or not.
What is meant by a sandbox, why you would use one.
what is Page Fault or Page thrashing ?
Tell me what is a watchdog timer?
How can you optimize the i/o performance?
Explain difference between risc and cisc processor?
Why is java used in embedded systems?
What is risc architecture?
What are the advantages and disadvantages of embedded system?