DEV Community

manuel
manuel

Posted on • Originally published at mnlwldr.com on

URL in C

Did you know that URLs are a valid syntactic element in C? Maybe the syntax highlighting will give you a hint :)

#include <stdio.h>  int main() { https://wildauer.io/ printf("hello, world\n"); return 0; } 
Enter fullscreen mode Exit fullscreen mode
~ gcc hello.c -o hello && ./hello hello, world 
Enter fullscreen mode Exit fullscreen mode

The code compiles and runs successfully, because https: is a label and // following begins a comment.

Top comments (0)