summaryrefslogtreecommitdiff
path: root/6p21.cpp
blob: 8b84857069c0619410a7a1276f57846cd19376e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#include <iostream>

/*
 *
 * 6.21
 *
 *
 */

int islarger(int i1, const int *i2) {

	if(i1 > *i2) {
		return i1;
	}

	return *i2;
}

int main () {

	int a = 101;
	int b = 253;
	int c = 0;
	c = islarger(a, &b);
	std::cout << c << std::endl;
	return 0;
}