Friday, 30 March 2012

Aptitude Question

void main()
{
int g=200*200/200;
printf(“%d”,g);
}
Ans: d The maximum value an integer can hold is 32,767. If we multiply 200*200 we will get a value 40,000, which is greater than the value that an integer can store.

No comments:

Post a Comment