Difference between revisions of "CSC231 Final Exam Fall 2017"
Line 120: | Line 120: | ||
// D. Thiebaut | // D. Thiebaut | ||
// program to complete for CSC231, Final Exam | // program to complete for CSC231, Final Exam | ||
− | // | + | // |
− | // | + | // Example: |
+ | // gcc -o makeList makeList.c | ||
+ | // ./makeList 100 200 300 1000 | ||
// 1 | // 1 | ||
// 2 | // 2 | ||
Line 129: | Line 131: | ||
// -30 | // -30 | ||
// 5 | // 5 | ||
+ | // | ||
+ | // 100 | ||
+ | // 200 | ||
+ | // 300 | ||
+ | // 1000 | ||
+ | // | ||
// | // | ||
#include <stdio.h> | #include <stdio.h> | ||
Line 134: | Line 142: | ||
#include <ctype.h> | #include <ctype.h> | ||
+ | //--- structure used to implement the node --- | ||
+ | //--- of the linked-list --- | ||
struct node { | struct node { | ||
int item; | int item; |