Question: THIS IS ALL IN C++. Using what youve learned about declaring integer variables and the syntax for integer literals, provide the correct variable types for
THIS IS ALL IN C++.
Using what youve learned about declaring integer variables and the syntax for integer literals, provide the correct variable types for each of the eight variable declarations in this program. You can assume that ints are 32 bits and that shorts are 16 bits. Use the smallest legal type that will correctly store the subsequent value
#include
int main() { // Complete the following variable declarations // Using the smallest correct type for each ? a = -25; ? b = 249; ? c = -1725; ? d = 49752; ? e = -2000000252; ? f = 3U; ? g = -9LL; ? h = 25ULL; check("a", a); check("b", b); check("c", c); check("d", d); check("e", e); check("f", f); check("g", g); check("h", h); return 0; }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
