What does the following code output when the value of someIn

What does the following code output when the value of someInt is 67? if (someInt

Solution

30.Ans.The Data doesn\'t make sence.

31.#include<iostream.h>

#include<conio.h>

void main()

{

int temp;

clrscr();

cout<<\"Enter the Temprecture\";

cin>>temp;

if(temp<0)

cout<<\"Dangroues\";

else

if(temp>=0&&temp<=55)

cout<<\"chilly\";

else

if(temp>=56&&temp<=80)

cout<<\"Moderate\";

else

cout<<\"warm\";

}

31.

DataType Bytes bits

.........................................

int   4bytes   -2147483648 to 2147483647

short int   2bytes   -32768 to 32767

double   8bytes   +/- 1.7e +/- 308 (~15 digits)

char   1byte   -128 to 127 or 0 to 255

  

Boolean True or false 0 or 1
 What does the following code output when the value of someInt is 67? if (someInt Solution30.Ans.The Data doesn\'t make sence. 31.#include<iostream.h> #in

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site