Who determines the ordering of characters

前端 未结 6 1914
轻奢々
轻奢々 2020-12-19 03:17

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 =         


        
6条回答
  •  鱼传尺愫
    2020-12-19 03:46

    Why is the printing of whole set of lowercase letters not guaranteed in the above program.

    Because it's possible to use C with an EBCDIC character encoding, in which the letters aren't consecutive.

提交回复
热议问题