CHAR intrinsic function

Standard: F77 F90 F95 F2003 F2008 F2018 Example program


<Syntax>

CHAR ( I [ , KIND ] )

I : Integer;
KIND : scalar Integer constant expression;

Result : Character(Len=1) or Character(Len=1,Kind=KIND).

<Semantics>

Convert character code to Character type; this is the inverse of the ICHAR intrinsic function. Like many intrinsic functions, this is elemental; the result has the same shape as I, with the operation being applied elementwise.

<Related>

ACHAR intrinsic function, CHARACTER type, IACHAR intrinsic function, ICHAR intrinsic function, SELECTED_CHAR_KIND intrinsic function