Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does //**/ mean?

Tags:

c

c89

I have got snippet of old c-code with that lines (result is just slash sign):

putchar('/' //**/ 
    1 / 1 /'\1');

Can anyone explain this snippet? What does this symbols mean?

P.S. By the way it compiles well with std=c89 flag in gcc, but not with std=c99.

like image 686
Alexander Myshov Avatar asked Nov 28 '13 08:11

Alexander Myshov


1 Answers

That's a division, followed by an empty comment. In C99 mode, it's a new-style comment, causing a syntax error because there's no division operator now.

like image 114
user2357112 supports Monica Avatar answered Oct 06 '22 01:10

user2357112 supports Monica