Powered By Blogger

Thursday 28 April 2011

A tricky C program to print the string "Hi i'm Subhabrata Chakraborty" without using any semicolon(;) in the function.

#include<stdio.h>
#include<conio.h>
void main(void)
{
  if(printf("Hi I'm Subhabrata Chakraborty"))
}

3 comments:

  1. you used semi colon twice.
    check out this:
    Write a program in C to display a message without using semi colon anywhere in program

    Answer:
    #include
    void main()
    {
    if(printf(”Hello”))
    {}
    }
    We can write the printf inside while or switch as well for same result.

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete
  3. #include
    void main(void)
    {
    if(printf("Hello world"))
    {
    }
    }

    ReplyDelete