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;

r1=p/(double)q;

r2=(double)(p/q)

r1=p/(double)q; =&gt;divides an integer p with double=&gt;int/double=&gt;double... 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