+ 1
why do we use // in c++ ?
11 Antworten
+ 3
thanx. I know it was a silly question but this is my first time learning any computer language so yeah I asked a stupid question. thank u so much for helping though:)
+ 3
I'm not sniping at the answer; I see what's accepted. This answer is for a computer history worksheet meaning: "why C++ has // and C does not", otherwise it's social [trivia] ~ how popular convention becomes standards.
From source*:
"// comments were added for C99 due to their utility and widespread existing practice, especially in dual C and C++ translators."
[Early programmers used line editors (EDLIN is still in Win10, 32-bit) where // was more important; you can still find old posts from people who preferred one style over another]
*PDF (p58): "Rationale for International Standard—Programming Languages—C Revision 5.10"
+ 2
thank u for answering:)
+ 2
still. jinhe language k baare mein knowledge h unhe to ye chota hi lgega.
+ 2
thnx. needed encouragement and u gave me exactly that.
+ 2
same to u:)
0
koi bhi question chota nahi hota😹
0
nope...that's why all are answering
0
no problem... best wishes :)