- cross-posted to:
- technology@lemmy.zip
- hackernews@lemmy.smeargle.fans
- cross-posted to:
- technology@lemmy.zip
- hackernews@lemmy.smeargle.fans
I was definitely a Commodore kid, and BASIC was my first language. Maybe it’s nostalgia, but I still like BASIC for hobby stuff.
C
#include <stdio.h>
int main() {
printf(“Hello, world”);
return 0;
}
C++
#include <iostream>
int main() {
std::cout << “Hello, world” << std::endl;
return 0;
}