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

Discussion

Which of the following is the variable type defined in header string. h?

  • A.sizet
  • B.size
  • C.size_t
  • D.size-t

Answer: C

Correct answer: size_t

size_t is the unsigned integer type returned by sizeof and used for sizes and counts throughout the library - it is the type of the length that strlen returns and of the n parameter of strncpy. It is declared in <string.h> among other headers. The underscore is part of the name.

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

Post your comment

Please log in or register to post a comment.