Examveda

What is the purpose of the given C code?
#include <stdlib.h> 
_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

C. translate multibyte string to wide char string

D. translate wide character to multibyte string

Answer: Option B


This Question Belongs to C Program >> Standard Library Functions

Join The Discussion

Related Questions on Standard Library Functions