Vidyalelo
C Programming · Q152

Standard Library Functions

Programming · C Programming · question 152

Q152

What is the purpose of the given C code? #include _Mbsave _Mbxtowc = 0; int (mbtowc) (wchar_t *pwc, const char *a, size_t n) return (-Mbtowc (pwc, s, n, &-Mbxtowc) ) ;

A.
determine length of next multibyte code
B.
translates multibyte character to wide character
Answer
C.
translate multibyte string to wide char string
D.
translate wide character to multibyte string

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board