+ 14
In c++ we use // for single line comment and /* */ for multiple line comments... It is basically the syntax of c++.. We cannot use # because it is used to include the header file.. And work as preprocessor directive.. While in python we use # for comments.. Because there we use import keyeord
15th Jan 2019, 2:22 AM
Rohit
Rohit - avatar
+ 5
Its doesn't work in C++. in C++ we use these 👉 // single line comment /* Multiple line comment */
16th Jan 2019, 2:28 AM
Vishnu
Vishnu - avatar
+ 2
Because "#" in C is for include a file
16th Jan 2019, 5:57 AM
Fuu
Fuu - avatar
+ 1
Work in python
16th Jan 2019, 2:08 AM
Jatin
Jatin - avatar
+ 1
Because. It is made like that... We need to use // for single comment and /**/ for multiple
19th Jan 2019, 4:18 AM
You And I
You And I - avatar
+ 1
This is Ruby ! # - comment for the Ruby.
19th Jan 2019, 8:29 PM
Jamol Makhsudov
Jamol Makhsudov - avatar