Get the latest tech news

URL in C (2011)


Here is a silly little C puzzle: #include <stdio.h> int main(void) { https://susam.net/ printf("hello, world\n"); return 0; } This code compiles and runs successfully. $ c99 hello.c && ./a.out hello, world However, the C99 standard draft does not mention anywhere that a URL is a valid syntactic element in C.

None

Get the Android app

Or read this on Hacker News

Read more on:

Photo of URL

URL

Photo of C Puzzle

C Puzzle

Related news:

News photo

URLs are state containers

News photo

Responses from LLMs are not facts

News photo

Feedmaker: URL + CSS selectors = RSS feed