The least values of signed and unsigned 8-bit data-type variables would be:
Pick an option to check yourself, or open the answer below.
Show answer & explanation
Correct answer: D. −128, 0
Explanation
8-bit signed (two's complement) ranges from −128 to 127, and unsigned from 0 to 255. The least values are −128 and 0.More Programming Languages and Computer Graphics questions
- In the context of binding, which one of the following is incorrect?
- Given int arr[3][4][2] = {{{2,4},{7,8},{3,4},{5,6}}, {{7,6},{3,4},{5,3},{2,3}}, {{8,9},{7,2},{3,4},{5,1}}}; Which one of the following can…
- Allowing different derived classes to be used interchangeably through the interface provided by a common base class is called ______
- In a ______ curve the first and last vertices of the control polygon lie on the curve, and all other vertices define the derivatives, order…
- Inheritance provides the benefits of A. Shared interfaces B. Run-time polymorphism C. Less redundant information D. Dynamic binding Choose…
- Which of the following are correct uses of std::string constructors? A. string s1; B. string s2(s1); C. string s3{7}; D. string s4{'a'}; E.…