Search:

Type: Posts; User: vidyadhara

Search: Search took 0.00 seconds.

  1. Replies
    3
    Views
    997

    simple program

    hi i am getting different answers for the same code in VC++ and
    TURBOC++

    The source code is as follows


    void main()
    {
    int a=1;
    printf("%d",++a + ++a);
  2. Replies
    37
    Views
    4,973

    hi sorry to say both are wrong as far as i know...

    hi sorry to say both are wrong as far as i know the answer i going to be 4
    as
    in the expression
    c=2and b=0 and a=9
    so (b-b)*a=0
    and c+c=4;
    after the expression is evaluated c=1 and b=1 and a=9;
  3. Thread: pointers

    by vidyadhara
    Replies
    2
    Views
    844

    pointers

    i am a beginner may i know diff between

    int *x
    and
    int* x
Results 1 to 3 of 3