Who determines the ordering of characters

前端 未结 6 1922
轻奢々
轻奢々 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 04:02

    Obviously determined by the implementation of C you're using, but more then likely for you it's determined by the American Standard Code for Information Interchange (ASCII).

提交回复
热议问题