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
How can I manipulate individual bits?
What are the uses of null pointers?
What is an example of structure?
Explain how does flowchart help in writing a program?
What is identifiers in c with examples?
What are the different data types in C?
Why is struct padding needed?
Difference between MAC vs. IP Addressing
Why do we use namespace feature?
Is struct oop?
Explain null pointer.
Explain how do you use a pointer to a function?
What are valid operations on pointers?
Process by which one bit pattern in to another by bit wise operation is?
How many loops are there in c?