Computer Science, asked by pavi7332, 2 months ago

float display(int a, char b);Which one of the following could be the value returned by the above function

a) 89.67

b) “IECD”

c) 100

d) ‘A’

first to answer will get brainliest​

Answers

Answered by kamalrajatjoshi94
1

Answer:

It will print/return 89.67

Reason:-

  • In the given data types float is the greatest so according to hierarchy of operators.

char+int+float=float so it returns a float value which is 89.67

More information:-

  • The size of char is 16 bits(2 bytes)
  • The size of int and float is 32 bits(4 bytes)but float is greater as it has higher range of values
  • The size of byte(data type) is 1 byte(8 bits)
  • The size of short is 2 bytes(16 bits)
  • The size of double data type is 64 bits(8 bytes)
Similar questions