networking · beginner · ~15 min

Is it the HTTPS port?

Recognise the default TLS/HTTPS port.

Challenge

Implement int is_https_port(int port) returning 1 if port is 443, else 0.

Starter code

int is_https_port(int port) {
    /* TODO */
    return 0;
}

Solve this exercise in the browser editor — compile and run against the test harness, no setup required.