Help me in c

Discussion in 'Programming/Scripts' started by Abigail, Nov 7, 2009.

  1. Abigail

    Abigail New Member

    Hi Everyone,
    Can you give me some good Example?
    This Example will print the Hello without using printf.
    It is possible.
    Can you help me?
     
    Last edited: Nov 11, 2009
  2. pinguinito

    pinguinito New Member

    C "hello.c"

    #include <stdio.h> /* this is C */

    main()
    {
    printf("Hello, Word!\n");
    return 0;
    }



    // Now in C++.

    #include <iostream>
    int
    main()
    {
    std:: cout<<"!Bienvenido a C++!\n";
    return 0;
    }

    I hope this help Editor "vi" then gcc for C g++ for C++ for compiler
     
  3. vinopavit

    vinopavit New Member

    If u find the answer say me

    I think it is not possible to print without printf statement :eek:
     
  4. bfasula

    bfasula New Member

    #include <stdio.h>
    main()
    {
    putchar('h');
    putchar('e');
    putchar('l');
    putchar('l');
    putchar('o');
    putchar('\n');
    }
    ~
     

Share This Page