Everyone should at least have written a small C program.
C/C++ is not that hard but you are forced to be more responsible with your code. It brings your mind out of the comfort zone and find new ways to make your favorite language even better.
I like C. I can program in C. I can't program well, but I can do more than "Hello World." It has been a while, and I'd have to go through the various syntax again, but I'd pick it up pretty quickly.
Is it accurate when people say that Rust is the rightful successor to C?
I think it's C for SJWs and is the Mozilla language that is type safe. It's like C with a condem, I guess. It's supposed to produce safe code, disallowing me the chance to stomp all over it's memory or to escape it. I haven't tried it.
6 comments
0 u/TheBuddha [OP] 11 Dec 2017 14:06
This is pretty basic, really. But, it's well done. So, there... You damned curmudgeons! ;-)
0 u/roznak 11 Dec 2017 22:15
Everyone should at least have written a small C program.
C/C++ is not that hard but you are forced to be more responsible with your code. It brings your mind out of the comfort zone and find new ways to make your favorite language even better.
0 u/TheBuddha [OP] 11 Dec 2017 22:19
I like C. I can program in C. I can't program well, but I can do more than "Hello World." It has been a while, and I'd have to go through the various syntax again, but I'd pick it up pretty quickly.
Is it accurate when people say that Rust is the rightful successor to C?
0 u/roznak 12 Dec 2017 18:53
I never heard about Rust
0 u/TheBuddha [OP] 12 Dec 2017 18:56
I think it's C for SJWs and is the Mozilla language that is type safe. It's like C with a condem, I guess. It's supposed to produce safe code, disallowing me the chance to stomp all over it's memory or to escape it. I haven't tried it.
0 u/Goto80 13 Dec 2017 09:36
Nice. One remark: since the examples are in C, function
main()should really be declared eitherint main(void)orint main(int argc, char *argv[]).Sadly, gcc throws a warning about this issue only if compiled with option
-Wstrict-prototypes.