C

Also known as: C language

C is a statically typed systems language with manual memory management, pointers, and a thin abstraction over the machine. Still the lingua franca for OS kernels, embedded code, and language runtimes.

#include <stdio.h>

const char *greet(const char *name) {
  static char buf[64];
  snprintf(buf, sizeof buf, "hello, %s", name);
  return buf;
}

int main(void) {
  puts(greet("world"));
  return 0;
}

← Back to CS Glossary