UMBC CMSC 104 Spring 2001 CSEE | 104 | current 104

UMBC CMSC 104 -- Spring 2001

Lab Worksheet 2

  1. Log into your Unix machine and enter the following C program, which you should call lab2.c.
    /************************************************************** ** File: lab2.c ** Author: You Name Here ** Date: The Date Here ** SSN: Your SSN Here ** Section: 202 ** E-mail: You Email Address Here ** ** Desc: Lab #2, a sample C Program. ** ***************************************************************/ #include <stdio.h> int main() { printf("Hello, world!\n"); }
  2. Complile the program using the following command.
    gcc -Wall -ansi lab2.c
  3. Make sure the executable program (a.out) runs.

  4. Submit the program using the electronic submission instructions from the project page on the course web site.
    submit cs104_0201 lab2 lab2.c
  5. Verify that the program has been submitted using the following command.
    submitls cs104_0201 lab2