Teaching Rajasthan Basic Computer Instructor 2021 Mock Test Programming and Data Structure Programming in C
y , एक float, को एक int मान तक राउंड ऑफ करने का सही तरीका क्या है?
1
y = (int) (x + 0.5)
2
y = int (x + 0.5)
3
y = (int) x + 0.5
4
y = (int) ((int) x + 0.5)