I like to dabble in C, and I wrote and compiled my first C program in linux using gcc. Here it is.
#include < stdio.h>
main()
{
printf("this is a test \n");
printf("my name is\n");
printf("Mickey mouse\n");
}
I brought up a Linux shell and I compiled my hello.c program my typing cc -o hello hello.c in the bash shell. Then to run it, I typed ./hello. The dot back slash with no spaces is important!
I finally learned how to compile a C program!
This is a personal record of my python programming experiences. It will allow me to see how I am progressing as I learn a new language.
Subscribe to:
Post Comments (Atom)
Followers
Blog Archive
- June (1)
- March (3)
- February (1)
- July (3)
- May (1)
- April (1)
- March (1)
- January (1)
- December (1)
- November (4)
- July (3)
- May (2)
- April (1)
- March (6)
- February (2)
- December (1)
- November (1)
- September (3)
- August (3)
- July (1)
- March (3)
- January (1)
- December (5)
- November (2)
- October (1)
- September (2)
- August (1)
- July (4)
- May (3)
- February (1)
- January (1)
- December (1)
- November (2)
- October (2)
- September (9)
- August (2)
- May (1)
- April (1)
- March (6)
- February (5)
- January (3)
- August (2)
No comments:
Post a Comment