Search:

Type: Posts; User: Rohit88

Search: Search took 0.00 seconds.

  1. Replies
    5
    Views
    2,644

    increment operator

    #include<stdio.h>
    void main()
    {
    int i=5;
    printf("%d\n",i++ + ++i);
    }
    this code prints the value as 12 because for 1st i will be taken as 5 and then it is incremented to 6 which is again...
  2. Thread: calculation

    by Rohit88
    Replies
    9
    Views
    3,217

    @rags....that was an understatement.

    @rags....that was an understatement.
  3. Thread: calculation

    by Rohit88
    Replies
    9
    Views
    3,217

    All write guys thanks anyways for your concern.

    All write guys thanks anyways for your concern.
  4. Thread: calculation

    by Rohit88
    Replies
    9
    Views
    3,217

    I am reallly confused.....im only able to make...

    I am reallly confused.....im only able to make some guess by trying to modify the code in different ways...each time gettin different answers.....as i dont want to put up here my guesswork and be...
  5. Thread: calculation

    by Rohit88
    Replies
    9
    Views
    3,217

    @Salem...as you said i went through those...

    @Salem...as you said i went through those concepts...and now i get a bit of those....but im not getting how the expression "
    a+=(a+=3,5,a)" is sequenced for evaluation ??
  6. Replies
    5
    Views
    2,474

    that was great ......thanks everyone :)

    that was great ......thanks everyone :)
  7. Replies
    5
    Views
    2,474

    how it executes

    #include<stdio.h>
    main()
    {
    float a=.7;
    if(a<.7)
    printf("abcd");
    else
    printf("qrst");
    }
  8. Thread: calculation

    by Rohit88
    Replies
    9
    Views
    3,217

    calculation

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

    What happens in the printf statement to print 8 !!!
  9. Replies
    6
    Views
    2,282

    thanks a lot to each one of you.....your support...

    thanks a lot to each one of you.....your support were sufficient to get over the problem..thanks :)
  10. Replies
    5
    Views
    1,966

    I apologize for wrongly posting this thread. I...

    I apologize for wrongly posting this thread. I have reposted correctly on the link: http://cboard.cprogramming.com/c-programming/144760-need-help-explanation-code.html#post1079856
  11. Replies
    6
    Views
    2,282

    Thank you...but here say i want the preorder...

    Thank you...but here say i want the preorder traversal....so in the function printPreorder there is a recursion "printPreorder(node->left)" which calls itself....when i took one example of a...
  12. Replies
    6
    Views
    2,282

    I apologize for my previous thread i posted on...

    I apologize for my previous thread i posted on the link:http://cboard.cprogramming.com/c-programming/144753-need-help-explanation-code.html ...this new thread contains the same problem which i...
  13. Replies
    6
    Views
    2,282

    Need help for explanation of the code.

    #include <stdio.h>
    #include <stdlib.h>

    /* A binary tree node has data, pointer to left child
    and a pointer to right child */
    struct node
    {
    int data;
    struct node* left;
    ...
  14. Replies
    5
    Views
    1,966

    Need help for explanation of the code.

    #include <stdio.h>
    #include <stdlib.h>

    /* A binary tree node has data, pointer to left child
    and a pointer to right child */
    struct node
    {
    int data;
    struct node* left;
    ...
Results 1 to 14 of 14