+ 1
Why http is allowed in c++ compiler
Below code works without any error : #include <iostream> using namespace std; int main() { http://stackoverflow.com return 0; } I was expecting compiler error. any idea on this ?
3 Antworten
+ 4
As said here-
https://www.geeksforgeeks.org/writing-url-c-program/
http: becomes a goto because of ':' and //is just comment
+ 2
Akib Reza http becomes a "label" (goto is a statement that jumps to labels).
That reference fumbles the explanation a bit.
0
Kirk Schafer I don't know any other explanation. 👀