View the step-by-step solution to:

Can someone explain this questions?

Can someone explain this questions?

double r1, r2; 

int p=11; q=4; 



Top Answer

r1=p/(double)q; =>divides an integer p with double=>int/double=>double... View the full answer

Sign up to view the full answer

Other Answers

After working on your question, I... View the full answer

1 comment
  • How did you get it? Please explain
    • baharoo
    • Jul 19, 2016 at 11:08pm

double r1, r2; you have just created (defined) a variable r1 and r2 with a data type of double.  int p=11; q=4; you have... View the full answer

r1=p/(double)q; In this case q is converted to double and then division is done ( This is known as explicit conversion... View the full answer

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.


Educational Resources
  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question
Ask a homework question - tutors are online