Determine the result of expressions.

Q39. If a = 50 and b = 4 then determine the result of the following:

  1. a + = b
  2. a % = b
  3. a – = b
  4. a/ = b
  5. a * = b
  6. cout<<100/9;
  7. float pi = 22/7; cout<<pi.

Ans.(1). 54.

Ans.(2). 2.

Ans.(3). 46.

Ans.(4). 12.

Ans.(5). 200.

Ans.(6). 11.

Ans.(7). 3.

Leave a Reply

Your email address will not be published. Required fields are marked *

90 Views
%d bloggers like this: