Part 1 : Printf Hello word in C without using semicolon [only ones ]
#includevoid main() { if(printf("Hello")) { } }
Output :
Hello
Part 2 : Printf Hello word in C without using semicolon [infinite times]
#includevoid main() { while(printf("Hello")) { } }
Part 3 : Printf Hello [Using Switch]
#includevoid main() { switch(printf("Hello")) { } }
Part 4 : Using Else-if Ladder
#includevoid main() { if(printf("")) { } else if (printf("Hello")) { } else { } }
Part 5 : Printf Hello [Using While and Not]
#includevoid main() { while(!printf("Hello")) { } }
Part 6 : Using #define
#include#define PRINT printf("Hello") void main() { if(PRINT) { } }
No comments:
Post a Comment