I have a query based on the below program -
char ch;
ch = \'z\';
while(ch >= \'a\')
{
printf(\"char is %c and the value is %d\\n\", ch, ch);
ch =
It is determined by whatever the execution character set is.
In most cases nowadays, that is the ASCII character set, but C has no requirement that a specific character set be used.
Note that there are some guarantees about the ordering of characters in the execution character set. For example, the digits '0' through '9' are guaranteed each to have a value one greater than the value of the previous digit.