Question: Programming in C (Windows, not C++) Write a program that uses the sizeof operator to determine the sizes in bytes of the various data types
Programming in C (Windows, not C++)
Write a program that uses the sizeof operator to determine the sizes in bytes of the various data types on your computer system. Write the results to the file "data_ size.txt". The format for the results in the file should be as follows (the type sizes on your computer might be different from those shown in the sample output).
Hint: For the data type int, the expression sizeof(int) returns the number of bytes of the int data type.
Output:

data _size.txt- Notepad File Edit Format View Help pata Type char size 1 1 2 2 4 4 4 4 4 8 unsigned char short int unsigned short int int unsigned int ong it unsigned T float double ong int long double
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
