Domanda di colloquio di Microsoft

Design and write pseudocode for a backspace function that will work with DBCS characters.

Risposte di colloquio

Anonimo

18 mar 2013

DBCS was a precursor to Unicode that represented some characters as single bytes and some by double bytes based on a high order bit representing the first byte of a double byte character. The trick is to traverse the data backwards until a byte can be found that is unambiguously a single byte character, then traverse forward until one character before the starting point.

Anonimo

12 nov 2014

So can a string contain both? or it can only contain DBCS or asci ?