1

I had always used <bits/stdc++> library for my codes, however, I noticed that <bits\stdc++.h> works as well on CodeBlocks 16.01 on GNU GCC compiler, Windows 7/10 environment.

My question is Which of those is right, and if not both, why is one wrong?

I have successfully compiled code with that include in more than one computer.

Deltab
  • 124
  • 1
  • 10

1 Answers1

2

Which of them is right, if the both are not, why is one of them right and the other one not?

Only the forward slash / is right. Compilers under Windows systems use an extension that can handle both.

πάντα ῥεῖ
  • 1
  • 13
  • 116
  • 190