Files
2023-07-08 09:36:10 -05:00

34 lines
727 B
C++

/****************************************************************
****
**** This file belongs with the course
**** Introduction to Scientific Programming in C++/Fortran2003
**** copyright 2017 Victor Eijkhout eijkhout@tacc.utexas.edu
****
**** intprec.cxx : test precision of int types
****
****************************************************************/
#include <cmath>
using std::abs;
#include <iostream>
using std::cout;
#include <iomanip>
using std::boolalpha;
int main() {
//codesnippet intshortlong
short int ishort = 1024;
short ishort2;
int normal = 2000111222;
long int much = 1234567890123;
long much2;
long long int whole_lot;
long long whole_lot2;
//codesnippet end
return 0;
}