Question: Write a C program according to part a - creating three 32-bit integer variables For each part below, write a simple C program (or write

 Write a C program according to part a - creating three

Write a C program according to part a - creating three 32-bit integer variables

For each part below, write a simple C program (or write several lines of code within the same C program) which creates and/or initializes a variable (or variables), based on the specified requirements listed. Afterwards, comment on any non-trivial results obtained. a. Create three 32-bit integer variables: al, a2, and a3; specify the first as unsigned, the second as signed, and do not specify a sign modifier for the third (use the compiler's default type). Afterwards, on separate lines of code (separate from the declaration of the variables), assign the values +5, -555,555, and +1,000,000, respectively, to the three variables. Use the appropriate literal suffixes when assigning the values (see pg. 14 of the lecture notes). Values above the 16-bit numerical limits should be designated as longs. Finally, print out the value of each variable to confirm the stored values. Afterwards, try assigning different-polarity values to the third variable. Is the default setting of integer variables signed or unsigned

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!