Q(1) What will be output of following c program?
void main()
{
clrscr();
asm{
mov ax,10;
shl,2;
}
printf("%d",_AX);
getch();
}
Output: 40
Explanation: ax and bx is general purpose register.
Statement mov ax,61 means value 61 is storing at register ax.
Statement shl 2 is equivalent to a<<2
The Vera Zvonareva Picture
-
*Vera Zvonareva*
NEW YORK CITY, NEW YORK
*V. ZVONAREVA/K. Kanepi6-3, 7-5*
THE MODERATOR: Questions, please.
*Q. Crazy, crazy kind of weather out...
13 years ago
No comments:
Post a Comment