0 votes 0 votes K is int type K=2.0/9; What k will print? In let us c they give that k final value is 0.0 But I think it's value is 0 Programming in C programming-in-c + – Sourabh Kumar asked May 13, 2016 Sourabh Kumar 518 views answer comment Share Follow See all 4 Comments See all 4 4 Comments reply shivanisrivarshini commented May 13, 2016 reply Follow Share yes ur right its 0 0 votes 0 votes Tauhin Gangwar commented May 13, 2016 reply Follow Share yes u r also right itz 0 0 votes 0 votes Sourabh Kumar commented May 13, 2016 reply Follow Share Can anyone tell me when we need type casting and wats the problem without it 0 votes 0 votes shivanisrivarshini commented May 13, 2016 reply Follow Share http://www.cprogramming.com/tutorial/c/lesson11.html 0 votes 0 votes Please log in or register to add a comment.
0 votes 0 votes An operation between an integer and float always yields a float result. In this operation the integer is first promoted to a float and then the operation is performed. the net result is a float.int/int=int float/int=float int/float=float float/float=float so the given ans 0.0 will be correct asu answered May 15, 2016 asu comment Share Follow See all 0 reply Please log in or register to add a comment.