Read the function conv() given belowconv(int t){int u;u=5/9 * (t-32);return(u);                            }What is returnedA. 15B.  0C. 16.1D. 29

This question is related to TCS Interview

Showing Answers 1 - 10 of 10 Answers

Pallavi

  • Jun 6th, 2006
 

0 will be returned, because division of two integers (5/9)  is 0.

rajesh

  • Aug 5th, 2011
 

absolutely its 0... coz u is declared as int.. so u=0.5.. so it take u as 0.. and anything*0 becomes zero..

  Was this answer useful?  Yes

bhanupriya

  • Jan 17th, 2012
 

Ans. is B. 0

Code
  1. conv(int t){ int u; u=5/9 * (t-32); return(u); }

  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