Hello Linux friends,
I am currently trying to learn Linux and am faced with the following task.
I want to write a "Hello-World" C program with the following functionality:
When called, the function should return the following (with or without input parameters):
"Hello, World!"
The finished program should then be called with the following command.
$ make && ./hello
The following commands must be callable via "make":
- make
- make clean
So the evaluation needs the following files:
- Makefile
- hello.c
All libc functions can also be used for programming.
Below you can find example calls:
===============
1. example
-----------
$ make && ./hallo
cc -c -o hallo.o hallo.c
cc hallo.o -o hallo
Hallo, Welt!
2. example
-----------
$ make && make clean && ./hallo
cc -c -o hallo.o hallo.c
cc hallo.o -o hallo
rm -f hallo.o
Hallo, Welt!
Thank u for your help!