Question re: functions
Posted on 2004-10-17
If you were to have a case statement in which a function is called for each of the 8 cases, however, a file
runProgram(vector1, filename, filename2);
runProgram(vector2, filename, filename2);
runProgram(vector3, filename, NULL):
However, with case3, a second filename is not needed. Is it sufficient to pass in NULL???? I would rather not create 2 separate functions since it would be rather redundant.