Explain Operations involving unsigned and signed? unsigned will be converted to signed?
Submitted by: Administratoryes,
void foo(void)
{
unsigned int a = 6;
int b = -20;
(a+b > 6) ? puts("> 6") :
puts("<=6");
}
Here output would give you "> 6". The reason for this is that expressions involving signed and unsigned types have all operands
promoted to unsigned types
Submitted by: Administrator
void foo(void)
{
unsigned int a = 6;
int b = -20;
(a+b > 6) ? puts("> 6") :
puts("<=6");
}
Here output would give you "> 6". The reason for this is that expressions involving signed and unsigned types have all operands
promoted to unsigned types
Submitted by: Administrator
Read Online Embedded Systems Job Interview Questions And Answers
Top Embedded Systems Questions
☺ | Explain What is forward reference w.r.t. pointers in c? |
☺ | Explain What is the difference between embedded systems and the system in which RTOS is running? |
☺ | Explain What happens when recursion functions are declared inline? |
☺ | Explain What are the features different in pSOS and vxWorks? |
☺ | Explain What are different qualifiers in C? |
Top PC Hardware Categories
☺ | Motherboard Interview Questions. |
☺ | Basic Computer Interview Questions. |
☺ | Embedded Systems Interview Questions. |
☺ | A + (Plus) Hardware Interview Questions. |
☺ | Computer Architecture Interview Questions. |