I also got a C puzzle
-
Well, once a person through a challenge to me, write any line in C without using semi colon i.e. ; any idea?? I guess, using assembly its possible. Let me b more clear after many COOL solutions - i mean printing a line, as we do thru printf Utsav
-
Well, once a person through a challenge to me, write any line in C without using semi colon i.e. ; any idea?? I guess, using assembly its possible. Let me b more clear after many COOL solutions - i mean printing a line, as we do thru printf Utsav
/* Any Line */ Rocky <>< Yahoo! 360º - Try it yourself![^]
-
Well, once a person through a challenge to me, write any line in C without using semi colon i.e. ; any idea?? I guess, using assembly its possible. Let me b more clear after many COOL solutions - i mean printing a line, as we do thru printf Utsav
Here is an entire program without semi colon: void main() {} ;P
-
Well, once a person through a challenge to me, write any line in C without using semi colon i.e. ; any idea?? I guess, using assembly its possible. Let me b more clear after many COOL solutions - i mean printing a line, as we do thru printf Utsav
A blank line is legitimate in C. Comments also don't need semicolons, and neither do precompiler statements (i.e. #define, #include). The first line of an if or while statement doesn't need a semicolon. As a matter of fact, any statement could simply be written with the semicolon on the next line. :| Am I missing something?
-
Here is an entire program without semi colon: void main() {} ;P
#include <stdio.h> void main() { if(printf("Hello, world")) {} }
-
Well, once a person through a challenge to me, write any line in C without using semi colon i.e. ; any idea?? I guess, using assembly its possible. Let me b more clear after many COOL solutions - i mean printing a line, as we do thru printf Utsav
void foobar (int noNumber) {} even int main (int argc, char* argv []) { } is accepted by many compilers apart from that, any empty block is just fine {} You can do everything with macros, but that's just cheating, the semi colon is a statement terminator in C (unlike Pascal, where it is a statement delimiter), so you would need them in the maco definition another option would be to use the intialization list in the constructor OGR