Guest User

Untitled

a guest
Jun 17th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. void add( int * sum, int lhs, int rhs ) {
  2. *sum = lhs+rhs;
  3. }
  4.  
  5. void testAdd() {
  6. int a;
  7. int b = 5;
  8. int c = 3;
  9.  
  10. add( &a, b, c);
  11. assert( a == (b+c));
  12. }
Add Comment
Please, Sign In to add comment