Difference between revisions of "CSC231 Final Exam Fall 2017"

From dftwiki3
Jump to: navigation, search
Line 120: Line 120:
 
// D. Thiebaut
 
// D. Thiebaut
 
// program to complete for CSC231, Final Exam
 
// program to complete for CSC231, Final Exam
// when the function makeList() is written correctly,
+
//  
// the program outputs:
+
// 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;

Revision as of 13:32, 12 December 2017


...