retagged by
1,561 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
retagged by

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

2 votes
2 votes
1 answer
2
go_editor asked Jul 24, 2016
8,299 views
What is the output of the following program?#include<stdio.h main() { int a, b =0; static int c[10]={1, 2, 3, 4, 5, 6, 7, 8, 9, 0}; for (a=0; a<10; ++a) int ((c[a]%2)==0)...