KodeGod.com

001. Technical interview questions: Print message without using semicolon

Method 1

    #include<stdio.h>
        int main()
        {
            if(printf("KodeGod\n"))
            { }
        }

Method 2

    #include<stdio.h>
        int main()
        {
            while(!printf("KodeGod\n"))
            { }
        }

Method 3

    #include<stdio.h>
        int main()
        {
            for(;!printf("KodeGod\n");)
            { }
        }