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");)
            { }
        }
Watch all videos like this

Leave a Reply

Your email address will not be published. Required fields are marked *