Search:

Type: Posts; User: sKeL`

Search: Search took 0.01 seconds.

  1. Thread: Question!

    by sKeL`
    Replies
    2
    Views
    935

    Question!

    #include <stdio.h>
    void dothing(int a, int b[]);
    int main()
    {
    int x = 7, y[] = {11};
    dothing(x, y);
    printf("%i %i\n", x, y[0]);
    return 0;
    }
    void dothing(int a, int b[])
  2. Thread: questions

    by sKeL`
    Replies
    8
    Views
    1,212

    ok so ur saying the entire if else statement will...

    ok so ur saying the entire if else statement will all be truncated, and the initial value of y is printed instead?
  3. Thread: questions

    by sKeL`
    Replies
    8
    Views
    1,212

    since all the if statements isn't true and the...

    since all the if statements isn't true and the else statement will be carried out?

    sigh, my concept still ain't good.
  4. Thread: questions

    by sKeL`
    Replies
    8
    Views
    1,212

    Sorry, not 1, i thought y-- will be carried out...

    Sorry, not 1, i thought y-- will be carried out instead so it should be -1 right?
  5. Thread: questions

    by sKeL`
    Replies
    8
    Views
    1,212

    questions

    1

    for (d = 2; d < p; d++)
    if (!(p%d))
    isPrime = 0;

    what does the '!' in the 'if' statement means?


    2. What is printed out by the following poorly indented C code fragment?
  6. Replies
    1
    Views
    773

    Need help with simple qns.

    1. What is the value in x if y=3 and z=5, and x initially contains 0?

    x+=(y<z);

    Why is the answer 1?

    2. Study the following code fragment. Assuming that n is a non-negative integer....
Results 1 to 6 of 6