Description
The #pragma chars directive sets the sign type of char objects to be either signed or unsigned.
In C,
this pragma must appear before any source statements, in order
for this pragma to take effect.
In C++,
this pragma may be defined anywhere in the source file.
Syntax
Once specified, it applies to the entire file and cannot be turned off. If a source file contains any functions that you want to be compiled without #pragma chars, place these functions in a different file. If the pragma is specified more than once in the source file, the first one will take precedence.
Note: the default character type behaves like an unsigned char.
![]()
Preprocessor Directives - An
Overview
Preprocessor Directive -
#pragma
