Function

Apr 14, 2013 at 11:31pm
How to include a function incx to increment the value of x by one?
Last edited on Apr 14, 2013 at 11:35pm
Apr 14, 2013 at 11:33pm
1
2
3
void Increment(unsigned& x) {
 return ++x;
}
Apr 14, 2013 at 11:40pm
1
2
3
4
5
const static unsigned short int Increment(const static unsigned short int x){

	return x * 2 + 30 / 2 - 14;

}
Last edited on Apr 14, 2013 at 11:41pm
Topic archived. No new replies allowed.