Sorry this took so long to get up...
1. Write a function which takes a linked list of sorted integers,
and an integer, and removes the record with that integer from
the list.
2. What is the output from the following code:
#define s(x) #x
#define r(y) printf("%s ",y)
void junk (char * dog)
{
int i,j;
for (i=0;i < j;i++)
j = i*2;
r(dog);
printf("%s",__DATE__);
};
void main ()
{
junk();
}
3. Applying the "touch" command to what file would
cause the "make all" command to recompile everything?
CC = /usr/local/bin/cc
OBJS = main.c mail.c sort.c
OTHERS = anc.c
OBJS: first.h second.h
$(CC) -c $*.c
OTHERS: second.h
$(CC) -c anc.c
mailer: mail.o anc.o
$(CC) -o mailer mail.o anc.o
sorter: sort.o main.o
$(CC) -o sorter main.o sort.o
all: mailer sorter
$(CC) -o prog main.o sort.o mail.o anc.o
4. If a string is defined to be both the name of a
function and a macro, how will it be treated by the
compiler and why?
5. What is the result of the command "diff file.c file.c"?