Subject: Re: Hold it there folks...
Name:
tide Date: 4/8/2002 2:17:04 PM (GMT-7)
IP Address: 213.180.166.102 In Reply to: Hold it there folks... posted by
SickOfItAll Message:
Don't want to start any kind of war but Java is a great language!
If you can do C, there's no need for ASM anymore. But ASM gives you a great sense for the internals, how everything works. That's why I said, learn ASM first.
The classic fault (like below) would not have happened to me if I had done ASM first. tell me what's wrong about this example. It's supposed to work as expected but there's an error (hope the rest is okay, I last coded C a year ago...)
char* foo () {
char myArr[1025];
for ( int i=0; i < 1025; i++ ) {
myArr[i] = "A";
}
return myArr;
}
void bar() {
printf ( "%s\n", foo() );
}
|