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 |
Why is java used in embedded systems?
How does input/output bus functions?
What is something substantive that you've done to improve as a developer in your career?
What is the repository pattern? Why are patterns important?
Explain what is interrupt latency? How can you reduce it?
Discuss the concept of yagni and explain something you did recently that adhered to this practice.
Write a program to show the functionality of power-save super loop.
Please explain what is interrupt latency? How can you reduce it?
Tell me what are the uses of the keyword volatile?
How can you ensure that debugging a program while it's being used will not affect its functionality?
What is the difference between asynchrony and concurrency?
What is the scope of a function that is declared as static?