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 |
Write a program to show the functionality of power-save super loop.
Explain scope of static variables?
While writing interrupt handlers (ISR), which are points needed to be considered ?
How are macros different from functions?
What is inversion of control?
What are the 4 types of inheritance relationship?
Accessing fixed memory locations
How are local and global variables are allocated by compiler.
How does combination of functions reduce memory requirements in embedded systems?
What is the volatile keyword used for?
What is kernel paging?
Tell me what is the need for dmac in es?