Electronics and Communication Engineering - Microprocessors - Discussion
Discussion Forum : Microprocessors - Section 3 (Q.No. 26)
26.
Consider the following program in C
if a - 5.0, b = 2.0 and c = 3.0 the final result k =
int k;
float a, b, c;
k = a* b* c / 100 + 2.5 / 2 - 0.3 * 9
if a - 5.0, b = 2.0 and c = 3.0 the final result k =
Answer: Option
Explanation:
k = 0 + 1 - 2 = - 1 because k is an integer.
Discussion:
Be the first person to comment on this question !
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers