亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

Linux's next classic C language interview question
扔個(gè)三星炸死你
扔個(gè)三星炸死你 2017-06-26 10:59:04
0
1
1350

If you use the GCC compiler to execute the following program under Linux, what is the output result?

#include<stdio.h>
int main(){
    enum color{RED,BLUE,GREEN=-2,YELLOW,PINK};
    printf("%d  %d",BLUE,PINK);
    return 0;
}

I don’t understand very well. What’s the special syntax for enum type data in C language?

Original question source: Several classic interview questions in C language under Linux

扔個(gè)三星炸死你
扔個(gè)三星炸死你

reply all(1)
學(xué)霸

When GREEN=-2, the subsequent data will be enumerated from -1, so RED=0, BLUE=1, GREEN=-2, YELLOW=-1, PINK=0

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template