unsigned long : unsigned long « Data Types « C++ Tutorial






#include<iostream.h>

main()
{
  int n = 123;
  unsigned long factor=1;

  for(int i=n;i>1;i--)
    factor=factor*i;

  cout<<n<<"!="<<factor<<endl;
  return 0;
}
123!=0








2.17.unsigned long
2.17.1.unsigned long