Career point
Friday, 30 March 2012
Aptitude Question
void main()
{
int g=200*200/200;
printf(“%d”,g);
}
a
.
200
b
.
Error
c
.
40000
d
.
unpredictable
Explanation:
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment