in Programming in C retagged by
1,539 views
0 votes
0 votes

A program contains the following declarations and initial assignments.

int i=8, j=5;

double x =0.005, y=-0.1;

char c=’c’, d=’d’;

Determine the value of the following expressions which involve the use of library functions:

abs(1-2*j); log(exp(x)); toupper(d)

  1. 2; 0.005; D
  2. 1; 0.005; D
  3. 2; 0.005; E
  4. 1; 0.005; e
in Programming in C retagged by
1.5k views

1 Answer

0 votes
0 votes
abs(i-2*j) This function returns the absolute value =2

log(exp(x)) =ln(e^x) =.005

toupper(d) letter to be converted to uppercase=D

So option A is correct.
Answer:

Related questions