2 ms·
C: #include <stdio.h> int main(void) { printf("hello world\n"); return 0; } Rust: fn main() { println!("hello world"); }
by nnethercote 10y ago
C:
#include <stdio.h>
int main(void) {
printf("hello world\n");
return 0;
}
Rust:
fn main() {
println!("hello world");
}