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 convert a number to a string?
Explain what could possibly be the problem if a valid function name such as tolower() is being reported by the c compiler as undefined?
Explain how are portions of a program disabled in demo versions?
What are Macros? What are its advantages and disadvantages?
What is the difference between new and malloc functions?
Using which language Test cases are added in .ptu file of RTRT unit testing???
What is file in c preprocessor?
What are bitwise shift operators in c programming?
What does printf does?
Where we use clrscr in c?
What is the correct code to have following output in c using nested for loop?
What is the use of getchar functions?
How will you delete a node in DLL?
Is c still relevant?
How important is structure in life?