This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

code what i just wrote

my code is not code working. i copy from the webpage?

int main ( int , char ** ) { char __attribute ( "scatter_segment_before_main" ) message [ ] = "12345679";

int i ;

for ( ; ; ) ;

return 72 ;
}

what is wrong?>

Parents
  • What part of my previous sentence didn't you understand?

    What is your program expected to do? It does have varaibles that are unused, and infinite loop and a return value that can't be reached - and if reached would not have any OS to return it to.

    What was your goal when writing the program? Without any goal, it's impossible to define "works" or "doesn't work".

Reply
  • What part of my previous sentence didn't you understand?

    What is your program expected to do? It does have varaibles that are unused, and infinite loop and a return value that can't be reached - and if reached would not have any OS to return it to.

    What was your goal when writing the program? Without any goal, it's impossible to define "works" or "doesn't work".

Children