Search:

Type: Posts; User: ranjit89

Search: Search took 0.01 seconds.

  1. Replies
    8
    Views
    1,251

    OK got it..don't bother:redface:

    OK got it..don't bother:redface:
  2. Replies
    8
    Views
    1,251

    So nobody will answer it?

    So nobody will answer it?
  3. Replies
    3
    Views
    1,184

    Thanks Salem...That helped

    Thanks Salem...That helped
  4. Replies
    8
    Views
    1,251

    Need to know how the compiler works..why is it so?

    Need to know how the compiler works..why is it so?
  5. Replies
    3
    Views
    1,184

    struct question

    #include<stdio.h>
    struct game
    {
    int level;
    int score;
    struct player
    {
    char *name;
    }g2={"anil"};
    }g3={10,200};
  6. Replies
    8
    Views
    1,251

    printf question

    #include<stdio.h>
    int main()
    {
    short int a=5;
    printf("%d"+1,a);
    return 0;
    }

    output:d
    Why is the output so?
  7. Replies
    8
    Views
    1,851

    Nice to have the extra info..:)

    Nice to have the extra info..:)
  8. Replies
    8
    Views
    1,851

    Looks like you guys are right. This program gave...

    Looks like you guys are right. This program gave an output of 10 on a different compiler. So behavior is unexpected...Thanks again:)
  9. Replies
    8
    Views
    1,851

    The links you have provided discuss cases where i...

    The links you have provided discuss cases where i is used both as array index and in increment expression while in this question that is not the case. It gives same output on GCC and Borland C. Any...
  10. Replies
    8
    Views
    1,851

    increment question

    #include<stdio.h>
    void main()
    {
    static int a[][2][3] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 };
    int i = -1;
    int d;
    d = a[i++][++i][++i];
    printf("%d", d);
    }
  11. Replies
    5
    Views
    1,118

    Thanks..:):) that sums it up.

    Thanks..:):) that sums it up.
  12. Replies
    5
    Views
    1,118

    looping question

    #include<stdio.h>
    int main()
    {
    int i;
    for (i = 0; i < 5; i++) {
    int i = 10;
    printf(" %d", i);
    i++;
    }
    return 0;
Results 1 to 12 of 12