Files
Victor Eijkhout 6e41c0447e missing files
2023-08-16 19:14:29 -05:00

34 lines
729 B
C++

/****************************************************************
****
**** This file belongs with the course
**** Introduction to Scientific Programming in C++/Fortran2003
**** copyright 2016-2023 Victor Eijkhout eijkhout@tacc.utexas.edu
****
**** sizeof.cxx : size of fixed width int types
****
****************************************************************/
#include <iostream>
using std::cin;
using std::cout;
#include <iomanip>
using std::boolalpha;
int main() {
//codesnippet sizeoffixed
int8_t i8;
uint8_t u8;
int16_t i16;
uint16_t u16;
cout << sizeof(i8)
<< ", " << sizeof(u8)
<< ", " << sizeof(i16)
<< ", " << sizeof(u16)
<< '\n';
//codesnippet end
return 0;
}