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
What is 2c dna?
Create a simple code fragment that will swap the values of two variables num1 and num2.
What are called c variables?
Is int a keyword in c?
What is difference between Structure and Unions?
Why static is used in c?
Differentiate between declaring a variable and defining a variable?
Is c is a procedural language?
What is the total generic pointer type?
can we have joblib in a proc ?
What is a global variable in c?
What is else if ladder?
Explain output of printf("Hello World"-'A'+'B'); ?
Explain modulus operator.
Why do we use return in c?