4 ms·
Even I know that C is still a programming language. But to be sure I asked the Oracle : can I write a c program and compile it on macos? Yes, you can write an
by mediumsmart 2y ago
Even I know that C is still a programming language. But to be sure I asked the Oracle :
can I write a c program and compile it on macos?
Yes, you can write and compile C programs on macOS using a compiler like `clang` or `gcc`.
I have both - I made a file hellodude.c what small program can I write there to test this?
#include <stdio.h>
int main() {
printf("Hello, dude!\n");
return 0;
}
I did that - how do I compile this?
clang -o hellodude hellodude.c
it works thank you
You're welcome!