Microprocessors - Engineering

Q1:

Consider the following in C
  1. An arithmetic operation between integer and an integer gives integer as the result.
  2. An arithmetic operation between a real and a real constant gives real constant as the result.
  3. An arithmetic operation between an integer constant and a real constant is not valid.
Which of the above are correct?

A All

B 1 and 2 only

C 2 and 3 only

D 1 and 3 only

ANS:B - 1 and 2 only

Mixed mode statement is allowed in C.