Unix Basics:
Suppose you are logged on to Linux/Unix and are in your home directory.
Give a command to create a new directory rec2.
Give a command to change to this new directory.
Now assume that you have used vi to create
a file which is a C program hello.c in this directory (as is partly
described in the next question).
Give a command to compile this C program, resulting in an
executable file hello.
Give a command to execute the filehello,
and to redirect the output to a file named
hello.output.
vi Editor:
Suppose you are using vi to
create and edit a new file named hello.c.
Give command(s) so that you can create and start editing the file.
Give command(s) to enter the following line into the file:
#include <stdio.h>
Give command(s) to save the file and exit vi.
lint:
How will lint help us with the following
segment of C code:
double x = 3.1415926;
printf("x = %10.6i\n", x);
dice program:
How does one write the formal parameter to a function in C
when it is a 1-dimensional array named a?
What is likely to be an error in the C constant definition: