A world of Programming- Gsbprogramming
By Er Gurpreet Singh, Senior Software Engineer, Sopra Steria India
Labels
About
ASP.NET
C&Cpp
C#
CSS
GK
Java
Java EE
JQuery
Notes
Oracle apps
OS
Others
PL/SQL
Programming Quiz
SQL
Sunday, 4 January 2015
Programming Quiz-71
main()
{
signed int bit=512, i=5;
for(;i;i--)
{
printf("%d\n", bit >> (i - (i -1)));
}
}
a. 512, 256, 0, 0, 0
b. 256, 256, 0, 0, 0
c. 512, 512, 512, 512, 512
d. 256, 256, 256, 256, 256
Answer: D
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment