What is the value of y in the following code?
x=7;y=0;
if(x=6)
y=7;
else
y=1;
Answer Posted / manjunath a s
it will be in infinite loop because x=6 is an assignment
statement and it will be always true.
| Is This Answer Correct ? | 1 Yes | 6 No |
Post New Answer View All Answers
i want to switch my career from quailty assurance engineering to development kindly guide me from which programming language its better for me to start plz refer some courses or certifications too i have an experience of 1.5 yrs in QA field.Kindly guide me
How can I direct output to the printer?
what is reason of your company position's in india no. 1.
What functions are used for dynamic memory allocation in c language?
What is cohesion in c?
Calculate the weighted average of a list of n numbers using the formula xavg = f1x1+f2x2+ ….+ fnxn where the f’s are fractional weighting factors, i.e., 0<=fi<1, and f1+f2+….+fn = 1
1. Write a function to display the sum of two numbers in the following ways: By using (i) pass by value (ii) pass by address a. function with argument and with return value b. function with argument and without return value c. without argument , with return value d. without argument , without return value Note: Use pass by address.
What is c definition?
Describe the steps to insert data into a singly linked list.
Can I initialize unions?
write a programe to accept any two number and check the following condition using goto state ment.if a>b,print a & find whether it is even or odd and then print.and a
What is break in c?
What is the difference between scanf and fscanf?
What is a global variable in c?
What are the types of variables in c?