Thursday 11 February 2016

Declare variables matching the following descriptions

Leave a Comment

Declare variables matching the following descriptions:

          a. A short integer with the value 80

          b. An unsigned int integer with the value 42,110

          c. An integer with the value 3,000,000,000

Ans:

2. short rbis = 80;            // or short int rbis = 80;
unsigned int q = 42110;     // or unsigned q = 42110;
unsigned long ants = 3000000000;
// or long long ants = 3000000000;
If You Enjoyed This, Take 5 Seconds To Share It

0 Questions: