What is the value of y in the following code?
x=7;y=0;
if(x=6)
y=7;
else
y=1;
Answer Posted / priya
Logically it is wrong ,because relational operator(==) is
used to check the condition/expression
if(x==6) then the result of y is 1
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
How can I discover how many arguments a function was actually called with?
Array is an lvalue or not?
What is huge pointer in c?
How can you restore a redirected standard stream?
What is the difference between a string and an array?
write an algorithm to display a square matrix.
What is null pointer constant?
What is masking?
Explain how can you tell whether two strings are the same?
What are the restrictions of a modulus operator?
Is main is user defined function?
How can you find out how much memory is available?
What is the difference between malloc calloc and realloc in c?
HOW TO SOLVE A NUMERICAL OF LRU IN OS ??????
What is extern storage class in c?