Read the function conv() given belowconv(int t){int u;u=5/9 * (t-32);return(u0;}What a.15b.0c.16.1d.29

A
This question is related to TCS Interview

Showing Answers 1 - 10 of 10 Answers

laxmikanth

  • Feb 10th, 2006
 

i feel the question itself is wrong.

1)without a parameter value how can we estimate the result.

2)The above function will generate an error because one side of parenthesis is missing for return statement

  Was this answer useful?  Yes

kamanjari

  • Mar 29th, 2007
 

without the parameter value t how to calculate the value....the question is wrong i think so

  Was this answer useful?  Yes

A.R

  • May 13th, 2007
 

The ans would be 0.  5/9 returns 0 becos both 5 & 9 are integers.

  Was this answer useful?  Yes

avula chiru

  • Sep 30th, 2010
 

The output is zero because u is declared as a int type when we devide the 5 with 9 the result is 0 and multiply it with t-32, the total result is zero.
There fore the option is b.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions