satya


{ City } hyderabad
< Country > india
* Profession *
User No # 80685
Total Questions Posted # 0
Total Answers Posted # 1

Total Answers Posted for My Questions # 0
Total Views for My Questions # 0

Users Marked my Answers as Correct # 10
Users Marked my Answers as Wrong # 2
Questions / { satya }
Questions Answers Category Views Company eMail




Answers / { satya }

Question { BrickRed, 11450 }

main()

{

char c;

int i = 456;

clrscr();

c = i;

printf("%d", c);

}

a. 456

b. -456

c. random number

d. none of the above


Answer

ans: -56
explanation:
it mainly focus on integer range
it will prints the output like this
for 1=1
2=2....127=-127,
128=-128,
129=-127....256=0;
similarly
456 means 256+256=512=0;
456-512=-56

Is This Answer Correct ?    10 Yes 2 No