본문 바로가기

WIL(What I Learned)/일반

How to run C program in mac terminal?

https://stackoverflow.com/a/32341993/15011104

 

How to run C program on Mac OS X using Terminal?

I am new to C. Here is my "Hello,world!" program. #include <stdio.h> int main(void) { printf("Hello, world!\n"); return 0; } After I try to run it using Terminal it says: MacBook-...

stackoverflow.com

 

gcc -o HelloWorld HelloWorld.c
./HelloWorld

'WIL(What I Learned) > 일반' 카테고리의 다른 글

how to calculate coefficient of variation in R  (0) 2022.04.30
To get a median from a tibble in R  (0) 2022.04.30
5주차/31주차  (0) 2022.04.29
Python 변수 사이 공백 포함 후 출력  (0) 2022.04.26
4주차/31주차  (0) 2022.04.16