Search:

Type: Posts; User: justiliang

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    1,601

    OOOO, yeah I found increment. So i++ is a...

    OOOO, yeah I found increment.

    So i++ is a postfix position and it looks like

    int k = i++;

    is the same as

    int k = i;
    i = i + 1;
  2. Replies
    5
    Views
    1,601

    Okay I found out the first one is chars[] =...

    Okay I found out the first one is chars[] = "hello";

    But for the second question I cannot find it in my notes :S.

    I was thinking that i++ only works when it is on it's own, ex:

    int i = -1;...
  3. Replies
    5
    Views
    1,601

    2 simple C program questions.

    1. How do you declare a variable s containing the string hello?

    My attempt:
    char s = "hello";

    2. Why is it that when the following code executes:

    int i = -1;
    int k = i++;
  4. Visual Studios Express 2010 The one with C++ and...

    Visual Studios Express 2010
    The one with C++ and C.
  5. How do I set it to max? I probably will only use...

    How do I set it to max? I probably will only use it for dire situations since we are not allowed these tools on tests; we have to write it out by hand.
  6. LOL -_- AHHHHHHHHHHHHHHHHHHHHHHHHHHHH ...

    LOL -_-

    AHHHHHHHHHHHHHHHHHHHHHHHHHHHH

    Thanks Salem!
  7. Need help with an error in the output of my code!

    Hello everyone! I recently started programming 2 weeks ago and for one of the practice assignments I keep on getting an output of 0.00 no matter what number I plug in. I have spent two hours on...
Results 1 to 7 of 7