Chapter - 2: C Instructions

Fill in the blanks:


G
Sections
1
Exercises

(a) In y = 10*x/2 + z; _____ operation will be perofrmed first.

ans: 10*x

 

(b) If a is an integer variable, a = 11/2; will store _____ in a.

ans: 5

 

(c) The expression, a = 22 / 7 * 5 / 3; would evaluate to _____.

ans: 3

 

(d) The expression, a = 5000*3+6754; would evaluate to ____.

ans: 21754

 

(e) The expression x = -7 % 2 - 8; would evaluate to ____.

ans: -9

 

(f) If d is a float the operation d = 2 / 7.0 would store ____in d.

ans: 0.28571


© 2021 Garbage Valuegarbage value logo