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
Are local variables initialized to zero by default in c?
Explain what is dynamic data structure?
Do you know null pointer?
Is c still relevant?
Why can’t constant values be used to define an array’s initial size?
What is define c?
What are pointers? What are different types of pointers?
Is fortran still used today?
Differentiate between declaring a variable and defining a variable?
What is a stream water?
What is pointer to pointer in c with example?
What is the use of the function in c?
write a program to rearrange the array such way that all even elements should come first and next come odd
Linked list is a Linear or non linear explain if linear how it working as a non linear data structures
i want to know the procedure of qualcomm for getting a job through offcampus