Hello I want to ask you a few question

I have see ,someone use a hexa code like this

char oke[]=

Whats mean  

az001 , Thank you for your question.

Some of the 256 characters that can be specified by an 8-bit value (a byte) are printable, and some are not. Some depend on the current system language.

When you want to specify a specific character by its encoding (its byte value), use this syntax:


where "\" is the backslash character, used here as an "escape" character, "x" means "hexadecimal (byte) value", and NN is the desired byte value. For example, the character string \x21 represents an exclamation sign (!).

The syntax

char S[] = "test";

declares a variable called S which takes about 9 bytes of memory. Four bytes are at location S and are a pointer to the 5-byte character string "test" (terminated by an invisible character with a value of zero).

David Spector


All Answers

Answers by Expert:

Ask Experts


David Spector


Highly knowledgeable in the C++ language, Visual C++ (MSVC), Windows API, documentation and other quality-assurance techniques, and debugging. Knowledgeable in MFC, COM, GUI design, and object-oriented design.


I have been a software engineer since 1965. I have been published. My specializations have been: biomedical programming, compiler implementation, and many kinds of Windows programming. I don't do Databases or other business-oriented stuff.

Windows?/DOS Developer's Journal, ACM SIGPLAN Notices, and Computer Science Press.

ICCP Systems Programming Certification
Master's degree equivalent in Computer Science

©2017 About.com. All rights reserved.