none
c (program without semi colon ) RRS feed

Answers

All replies

  • you can try out using a while loop as


    while(!(printf("hello world"))


    thats it







    cheers
    nana
    Saturday, September 15, 2007 4:44 AM
  • int main()
    {
      if(printf("\n Hello World"))

    retur 0;
    }

    This will also work
    Saturday, September 15, 2007 12:50 PM
  • Well budy your code is containing a ";"

    and brother
    Code Snippet

    while(!printf("Hello"))

    this wont work

    you forgot to add the braces...

    so this will work
    Code Snippet

    while(!printf("Hello")) { }


    Saturday, September 15, 2007 3:27 PM
  •  bo_boys_c80f0f wrote:
    can some one tell me how to print a text in cprogram without a semicolon


    y u want to print without semicolon..

    using while, for and if are good option to do it.
    Tuesday, September 18, 2007 5:43 AM
  • #include<stdio.h>

    int main()
    {
      if(printf("I'm printed without using a semicolon!"))
      {
      }
    }


    Tuesday, September 18, 2007 2:35 PM