Thursday, October 9, 2008

FINAL QUESTION

Since not all MCS 213 students can try DEBUG commands because of the technical problems of our computers, search now any Turbo C program with assembly codes in it and run this in your PC. Check the result of your running C program.If the program produces the expected output, copy the Turbo C codes into your post and its result. YOu may do this by pressing Print Screen on your keyboard for the result of your program then, switch to Paint Brush and Paste. Resize the window and copy this to your post.


ANSWER:



main()


{
i = 0x0004;
_exit(0x0000);
_scanf(0x0194,&l_int_1);
if(i < i =" l_int_1;" l_char_1 =" 0x0004;" l_int_1 =" 0x0004;" k =" 0x0002;"> l_int_1) ? k : l_int_1)
{
case 0 :
if(i < i =" l_int_1;"> l_int_1)
{
if(l_char_1 == 0x0001)
{
_printf(0x01A3);
l_int_1 = 0x0004;
}
}
}
break;
case 22 :
_printf(0x01A7);
break;
case 19 :
_printf(0x01AA);
case -4 :
i = 0x0001;
break;
default :
i = 0x0000;
while(i < i =" i" k =" 0x0001;">

No comments: