Exercise #0: Hello, world

Objectives

Assignment

Write a program in a single file called hello.c that prints Hello, world! as the first line of output. Note that that first line contains a single space to delimit the words and a newline character at the end. It is also case-sensitive. You may output anything or nothing after the first line.

Example

[jrg94@giraffe Hello]$ ./Hello
Hello, world!

Garlic mustard is invasive in North America but can be made
into a fine sauce that is delicious on roasted potatoes.
Wavyleaf basketgrass is also invasive but even the deer won't
eat it.  It should be killed on sight and some people spend
many days over the summer doing just that.

Submissions

Submit just your hello.c file and your log. Your log need not contain a statement of major difficulties for this assignment.
[jrg94@scorpion Hello]$ /c/cs223/bin/submit 0 hello.c log
[jrg94@scorpion Hello]$ /c/cs223/bin/testit 0 Hello
/home/classes/cs223/Hwk0/test.Hello
Copying makefile
Executing /home/classes/cs223/Hwk0/test.Hello

Public test script for Hello (08/28/2020)

***** Checking for warning messages *****
Making -B ./Hello
gcc -o Hello -std=c99 -Wall -pedantic -g hello.c

Each test is either passed or failed; there is no partial credit.

To execute the test labelled IJ, type one of the following commands
depending on whether the filr /c/cs223/hw0/Tests/tIJ is executable or not
     /c/cs223/hw0/Tests/tIJ
     ./Hello < /c/cs223/hw0/Tests/tIJ
The answer expected is in /c/cs223/hw0/Tests/tIJ.out.


           Tests
PASSED  001. First Line
PASSED  002. Do not crash

           Tests: 2 points

               Deductions for Violating Specification (0 => no violation)

End of Public Script

  2 points Total for Hello

           Possible Deductions (assessed later as appropriate)
               -10 Deficient style (comments, identifiers, formatting, ...)
                -5 Does not make
                -5 Makefile missing
                -5 Makefile incorrect
                -1 Log file incorrectly named
                -1 Log file lacks estimated time
                -1 Log file lacks total time
                -1 Log file lacks statement of major difficulties

***** Checking log file *****
Estimate: 0:01 ESTIMATE
Total: 0:05 TOTAL time spent

***** Checking makefile *****