What will be the value of a c variable after the following code's execution:
int a=4;
int b=3;
double c=a/b;
Explanation
Since a and b are of int type, then a/b will perform an integer division, therefore a/b = 1.

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Cosmo
Sign Up Now
or Subscribe for future quizzes