This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <math.h> | |
void update(int *a,int *b) { | |
int ans1, ans2; | |
ans1 = *a + *b; | |
ans2 = abs(*a-*b); //absolute via math.h | |
printf("%d\n%d", ans1, ans2); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @author JD Durick | |
* @date 3/11/1998 | |
* Assignment: part of bigger program written to handle | |
merge sort and quick sort analysis | |
*/ | |
#include <stdio.h> //header file for input/output |
NewerOlder