Thread: Short programm

  1. #1
    Registered User
    Join Date
    Jan 2019
    Posts
    1

    Short programm

    Hi all,

    first I want to tell that I have nothing in common with programming. However I got some task that part of it is short program written in C language:

    Code:
    int main()
    {
    printf(¨Hello girl¨);
    return 0;
    }
    output: goodbye
    #collapse
    Could you be that kind and analyze what actually this code does?
    Escpecially #collapse, cant find it in the Internet.

    Cheers!

  2. #2
    Registered User
    Join Date
    Nov 2018
    Posts
    21
    Hi, it should be
    Code:
    printf("Hello girl");
    not
    Code:
    printf(¨Hello girl¨);
    It should print "Hello girl" to the stdout. I don't get how come the output is "goodbye" and where did you get this "#collapse" preprocessor!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 5
    Last Post: 10-01-2012, 10:57 PM
  2. How come short + int = int but short + uint = long?
    By y99q in forum C# Programming
    Replies: 2
    Last Post: 10-29-2011, 11:16 AM
  3. Replies: 2
    Last Post: 04-21-2008, 07:43 PM
  4. Replies: 7
    Last Post: 02-08-2008, 06:31 PM
  5. Replies: 1
    Last Post: 07-12-2002, 09:45 PM

Tags for this Thread