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...
User Profile
Collapse
-
Sorry for the joke here, but I agree with JosaH , xyzzy is a cheat code in game ROADRASH....Leave a comment:
-
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. -
<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,
JosLeave a comment:
-
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...Leave a comment:
No activity results to display
Show More
Leave a comment: