2 ms·
Is it still "Hello, world!" if that is never printed to the screen?
by whackedspinach 14y ago
Is it still "Hello, world!" if that is never printed to the screen?
- signalsignal 14y agoNot printing "Hello, World!" to the screen would be considered a LOGIC ERROR.
- anvandare 14y agoGood point! Just add some inline-assembly to have it call write: int main() { char *str = "hello world\n"; int len = 12; __asm__ ( "int $0x80" :: "a" (4), "b" (1), "c" (str), "d" (len) ); return 0; }