hello.c

/*
 * HELLO -- traditional first C program
 *
 * Usage: hello
 *
 * Inputs: none
 * Output: prints "hello, world!" on a line
 * Exit Code: 0 because all goes well
 *
 * Matt Bishop, Sept. 24, 2015
 *	original program written
 */
#include <stdio.h>
#include <stdlib.h>

/*
 *  main routine
 *
 * print "hello, world!"
 */
int main(void)
{
	/* print the message */
	printf("hello, world!\n");

	return(0);
}

UC Davis sigil
Matt Bishop
Office: 2209 Watershed Sciences
Phone: +1 (530) 752-8060
Email: mabishop@ucdavis.edu
ECS 36A, Programming & Problem Solving
Version of April 2, 2024 at 12:13PM

You can get the raw source code here.

Valid HTML 4.01 Transitional Built with BBEdit Built on a Macintosh