DEV Community

manuel
manuel

Posted on • Originally published at mnlwldr.com on

1

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)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay