What will the given C code do? [code]#include <stdlib.h> _Mbsave_Mbxlen={0}; int (mblen)(const char *s ,size_t n) { return(_Mbtowc(NULL

What will the given C code do?
Code:
#include <stdlib.h> 
_Mbsave_Mbxlen={0};
int (mblen)(const char *s ,size_t n)
{
return(_Mbtowc(NULL s,n,&_Mbxlen));
}
A. determine length of next multibyte code
B. determine next multibyte code
C. translate multibyte string to wide char string
D. translate wide character to multibyte string
 
Answer: a
Explanation: mblen() function is used to return the length of a multi-byte character pointed to, by the argument s. The data objects _Mbxlen and _Mbxtowc both have names with external linkage.
 

Tìm kiếm

Back
Top