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


Please Help Members By Posting Answers For Below Questions

Are local variables initialized to zero by default in c?

545


Explain what is dynamic data structure?

642


Do you know null pointer?

607


Is c still relevant?

637


Why can’t constant values be used to define an array’s initial size?

829






What is define c?

570


What are pointers? What are different types of pointers?

624


Is fortran still used today?

600


Differentiate between declaring a variable and defining a variable?

603


What is a stream water?

654


What is pointer to pointer in c with example?

544


What is the use of the function in c?

595


write a program to rearrange the array such way that all even elements should come first and next come odd

1759


Linked list is a Linear or non linear explain if linear how it working as a non linear data structures

1761


i want to know the procedure of qualcomm for getting a job through offcampus

1933