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

Discussion

What will function gcvt() do?

  • A.Convert vector to integer value
  • B.Convert floating-point number to a string
  • C.Convert a 2D array into a 1D array
  • D.Convert a multidimensional array into a 1D array

Answer: B

Correct answer: Convert floating-point number to a string

gcvt() converts a floating-point number to a string, in the shorter of fixed and exponential notation for the requested number of significant digits. It is a non-standard function of the old Unix and Turbo C libraries; sprintf is the portable way to do the same thing.

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

Post your comment

Please log in or register to post a comment.