Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I have the following source:

int main() { 000J; }

With gcc 4.8.4 it compiles without errors. I know there are suffixes like L or U, but I didn't find anything about J.

So what does it do?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
203 views
Welcome To Ask or Share your Answers For Others

1 Answer

I get a warning:

Imaginary constants are a GNU extension

The J suffix is a GNU extension, which causes the literal to be of a _Complex type.

More info here: https://gcc.gnu.org/onlinedocs/gcc/Complex.html


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...