Machine-translated by Google. Questions are authored in English.
Top

Discussion

Which of the following is the correct code?

  • A.tanh(double x)
  • B.tanh double x
  • C.tanhdouble x
  • D.tanhdoublex

Answer: A

Correct answer: tanh(double x)

A function call or declaration needs the argument in parentheses: tanh(double x). tanh is the hyperbolic tangent, declared in <math.h> as double tanh(double).

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.