What is the value of y in the following code?
x=7;y=0;
if(x=6)
y=7;
else
y=1;
Answer Posted / vijay r15
In c non zero values
in if statement r
considered to be true
here if(i=6)
so it makes if(6)
hence its true
op is 7
if 1ly execute false
for if(0)
got it
r
mail to
raj.Vijay55@gmail.Com
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
Explain what is the most efficient way to store flag values?
Why doesnt this code work?
write an algorithm to display a square matrix.
Where define directive used?
What is NULL pointer?
Why void is used in c?
What is the use of ?: Operator?
Can you please compare array with pointer?
Do you know the purpose of 'register' keyword?
What is assignment operator?
What are the advantages and disadvantages of c language?
Explain how do you determine the length of a string value that was stored in a variable?
What is use of bit field?
What is uint8 in c?
When should a type cast be used?