Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Different answer for Exercise 1.8 #165

Open
zhenk14 opened this issue Apr 24, 2019 · 2 comments
Open

Different answer for Exercise 1.8 #165

zhenk14 opened this issue Apr 24, 2019 · 2 comments

Comments

@zhenk14
Copy link

zhenk14 commented Apr 24, 2019

Exercise information

Exercise 1.8

Question or Bug

Didn't generate error for

std::cout << /* "*/" /* "/*" */;

Instead, terminal shows

 /* 

Should the first /* and the first / comments out the first " and last / and last / comments out the last " and leave with with "/" in the middle?

Your enviroment information

  • System: : (Ubuntu 7.3.0-27ubuntu1~18.04):
  • Compiler version/IDE: gcc version 7.3.0
@pawankholiya01
Copy link

{/"/} " /* " {/"/};
complete expression inside curly braces is commented out so yeah you should get thatoutput

@Marina-Ananyeva
Copy link

It's not mistake. However, it is incorrect to use this format for comments. I think the author meant it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants