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
What is double pointer in c?
What are multidimensional arrays?
What are the main characteristics of c language describe the structure of ac program?
Explain what is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?
Differentiate Source Codes from Object Codes
Suggesting that there can be 62 seconds in a minute?
exit () is used to a) exit () terminates the execution of the program itself b) exit () terminates the execution of the loop c) exit () terminates the execution of the block d) none of the above
Explain what is meant by high-order and low-order bytes?
How can I ensure that integer arithmetic doesnt overflow?
What is merge sort in c?
What is local and global variable in c?
what is the significance of static storage class specifier?
What are the restrictions of a modulus operator?
Why flag is used in c?
Explain function?