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
Is c# a good language?
What is a MAC Address?
Explain the binary height balanced tree?
What is extern keyword in c?
FORMATTED INPUT/OUTPUT functions are a) scanf() and printf() b) gets() and puts() c) getchar() and putchar() d) all the above
How many parameters should a function have?
What is the code in while loop that returns the output of given code?
Where are the auto variables stored?
What is string concatenation in c?
How can I make it pause before closing the program output window?
What is the benefit of using const for declaring constants?
What is the right type to use for boolean values in c?
What is the use of a static variable in c?
What is switch in c?
What are structure types in C?