Why are there digraphs in C and C++?

后端 未结 4 1575
情深已故
情深已故 2020-11-28 06:55

I learned today that there are digraphs in C99 and C++. The following is a valid program:

%:include 

%:ifndef BUFSIZE
 %:define BUFSIZE  512         


        
4条回答
  •  旧巷少年郎
    2020-11-28 07:28

    Digraphs were created for programmers that didn't have a keyboard which supported the ISO 646 character set.

    http://en.wikipedia.org/wiki/C_trigraph

提交回复
热议问题