Pastebin is 300% more awesome when you are logged in. Sign Up, it's FREE!
Guest

Comment strip test case

By: a guest on Nov 5th, 2012  |  syntax: C  |  size: 0.34 KB  |  hits: 47  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. // Single line comment
  2. // Still single line comment /*
  3. /* Same line */ int main() { /* Another one */ int i; // i++
  4. /* Tricky // comment */
  5.  
  6. /* Multi layer
  7. /* jkdshfksd
  8. /* inside
  9. */
  10.  
  11. /* Multi line comment
  12. // Inside multi line comment
  13. */
  14. char *a =
  15. "sfksjd/*hfjkhk \\\
  16. /* inside string \
  17. // still inside \n\
  18. ";
  19. // */
  20. return 0;
  21. }