Algorithms
(Review on basics of C-language)
UKZN
ENEL2DSH2
2016
Lecturer: James A. Okello (SMIEE, PhD)
,Sample structure of C-program
//
// main.c
// Testing Filter • Sample comments
//
// Copyright © 2016 James Okello. All rights reserved.
#include <stdio.h> • Standard header or
#include "test_c_filter.h"
defined header
int main(int argc, const char * argv[]) { • Must have at least o
// insert variables & code here...
printf("Hello, World!\n");
function- main
test_filter_parameters(); // prototype of this function in header file
return 0; // return a value if necessary
}
,