Tuesday, April 7, 2015

C Program of Simple Sum

#include
void inc (int, int&);
void main ()
 {
  int i = 3;
  int j;

  inc(i,j);
  cout << j << endl;
}

void inc (int a, int& b)
{
  b = a+1;
}


No comments:

Post a Comment