User Profile

Collapse

Profile Sidebar

Collapse
anubhavit
anubhavit
Last Activity: Jul 30 '07, 07:04 PM
Joined: Jul 21 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • anubhavit
    replied to Bitwise operators
    in C
    So from the text, should I believe that the answer to that should be Undefined Behaviour.
    Also plz can you tell the page from where I can download the C99 Standard Text documentation and should I use it for my studying C purpose.
    Also does UB imply that a compiler will produce different result on same program or it means that machines should be different for the answer to e different becoz i am constantly getting the o/p as specified...
    See more | Go to post

    Leave a comment:


  • anubhavit
    replied to What is foo?
    in C
    Sorry for the joke here, but I agree with JosaH , xyzzy is a cheat code in game ROADRASH....
    See more | Go to post

    Leave a comment:


  • anubhavit
    started a topic Bitwise operators
    in C

    Bitwise operators

    After hitting my head on this and googling for my problem , I found this website ,
    Please if possible some one help me in the question..

    x=32;
    x<<-2

    Output = 0

    x=32
    x<<-65534

    Output = 128

    why is this kind of behaviour in C/C++ for negative integers, although I get a compiler warning for the use of -ve operand for bitwise operator.
    See more | Go to post

  • anubhavit
    replied to Printing letters in triangle pattern
    in C
    <code snipped>

    This is the code for
    A
    ABA
    ABCBA
    ABCDCBA
    .....

    Please don't spoonfeed the OP; we don't do boilerplate homework code here,
    it doesn't help anyone at all.

    kind regards,

    Jos
    See more | Go to post

    Leave a comment:


  • anubhavit
    replied to function declaration
    in C
    The error in the program is that you are not passing the 3 arguments that you are making use of in the function. Change the display function to
    void display(int m, int n)
    {int A[3] [3];
    int i,j;
    for (i=0;i<m;i++)
    for (j=0;j<n;j++)
    printf("%d",A[i][j]);
    printf("\n");
    }
    and your program should work...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...