A
Q. The following code is an example of?
Code:
double da = 4.5;
double db = 4.6;
double dc = 4.9;
//explicitly defined by user
int result = (int)da + (int)db + (int)dc;
printf(""result = %d"", result);
double db = 4.6;
double dc = 4.9;
//explicitly defined by user
int result = (int)da + (int)db + (int)dc;
printf(""result = %d"", result);
- Correct Answer - Option(A)
- Views: 26
- Filed under category C Programming
- Hashtags:
Discusssion
Login to discuss.