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

Discussion

What return types are used by the string operations?

  • A.void only
  • B.void and (char *) only
  • C.void and int only
  • D.void, int and (char *) only

Answer: D

Correct answer: void, int and (char *) only

The string functions return one of three things: char * for those that produce a position or a destination (strcpy, strcat, strchr, strstr), int for the comparisons (strcmp, strncmp), and void * for the mem family. strlen returns size_t, an unsigned integer type.

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

Post your comment

Please log in or register to post a comment.