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 |
Tell me what does dma address will deal with?
What are the essential components of embedded system?
What is mutex in an embedded system?
What is an embedded system and why it is used?
How does combination of functions reduce memory reuirement in embedded system?
What is continuous integration? Why is it important?
Describe a time when you collaborated with designers and engineers to deploy a new product. What was your role?
Explain me what is kernel paging?
How many types of ipc mechanism you know?
what is Page Fault or Page thrashing ?
Explain the concept of separation of concerns?
What is null pointer and what is its use?