What is the value of y in the following code?
x=7;y=0;
if(x=6)
y=7;
else
y=1;
Answer Posted / mahendra giri
y will be 7 because in the if condition we have assigned
value 6 on x not ==,so ans of
y =7
| Is This Answer Correct ? | 40 Yes | 2 No |
Post New Answer View All Answers
pierrot's divisor program using c or c++ code
Write a program to find the biggest number of three numbers in c?
What is pointer & why it is used?
What is c programming structure?
What is bubble sort technique in c?
hi... can anyone help me to make a two-dimensinal arrays in finding the sum of two elements plzzz. thnx a lot...
What are directives in c?
In the DOS enveronment, normal RAM that resides beyond the 1mb mark. a) expanded memory b) swapped memory c) Extended memory d) none
Explain 'far' and 'near' pointers in c.
Write a factorial program using C.
How many types of sorting are there in c?
what do you mean by enumeration constant?
Does c have an equivalent to pascals with statement?
What is boolean in c?
Why is void main used?