Livejournal
Log in
Post
Friends
My journal
b_a_t
Dennis Ritchie R.I.P.
Oct 13, 2011 11:29
#include int main() { printf("Good bye, world!\n"); }
Leave a comment
Comments 5
drf_ckoff
October 13 2011, 09:57:28 UTC
@@ -1,5 +1,8 @@
#include
-int main() {
- printf("Good bye, world!\n");
+int main(int argc, char **argv) {
+ if(printf("Good bye, world!\n") != 17) {
+ return 1;
+ }
+ return 0;
}
Reply
duke_igthorn
October 13 2011, 18:17:37 UTC
Ох уж эти пуристы. Хотя в любом случае - уж если int, то какой-нибудь завалящий return надо бы
Reply
starcat13
October 13 2011, 10:08:13 UTC
вот блин, что за волна :(
Reply
donna_laura
October 13 2011, 10:32:39 UTC
Да... ;((
Reply
svs
October 16 2011, 14:54:03 UTC
не о том, но
http://www.technovelgy.com/ct/content.asp?Bnum=1523
Reply
Leave a comment
Up
Comments 5
@@ -1,5 +1,8 @@
#include
-int main() {
- printf("Good bye, world!\n");
+int main(int argc, char **argv) {
+ if(printf("Good bye, world!\n") != 17) {
+ return 1;
+ }
+ return 0;
}
Reply
Reply
Reply
Reply
http://www.technovelgy.com/ct/content.asp?Bnum=1523
Reply
Leave a comment