aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • C Programming
  • The value of 15/10.0 is
Multiple choice

The value of 15/10.0 is

  1. 0.5

  2. 1.5

  3. 0

  4. none of the above

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

In C, when dividing an integer by a floating-point number, the integer is promoted to a float, resulting in a floating-point division. 15 / 10.0 = 1.5.

Keep practicing — related questions

  • Calculate the market value of share if the payout is 75%, EPS of the company is Rs. 8, rate of capitalisati...
  • What will be the output of the following code snippet? main() { int a=11,b; clrscr(); for(a%10;a++); printf...
  • The book value of investment is Rs. 1, 20,000 and investment fluctuation fund is appearing at Rs. 15,000. T...
  • On an article with a marked price of Rs. 10000, a customer has a choice between three successive discounts ...
  • Look at this series. 7, 18, 11, 15, 15, 12, 19, ... What numbers should come at 9th and 10th place, respect...
  • If the value of the expression x2 + 5x + k for x = 0 is 5, what is the value of k?
  • What will be the output of the following code snippet in C language? main() { int j=0,i; clrscr(); for(prin...
  • What will be the result of the given code snippet in C language? main() { int x=1; clrscr(); for(;x++;x%10?...
Play the full quiz 🎤 Practise this topic out loud
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy