What is the value of y in the following code?
x=7;y=0;
if(x=6)
y=7;
else
y=1;

Answer Posted / suchita

this is logically wrong bcoz we use relational opr in
conditional statements. and thats why he displays last
statements.

Is This Answer Correct ?    4 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When we use void main and int main?

579


How can you find the day of the week given the date?

607


What is the use of getchar() function?

622


What are linker error?

606


What is the usage of the pointer in c?

596






typedef enum { html, java, javascript, perl, cgi } lang;The above statement defines a : a) Union b) User defined type c) Enumerated variable d) none

703


How can I find the modification date of a file?

691


What is static and volatile in c?

773


Write a program to compute the similarity between two strings - The program should get the two strings as input - Then it will output one single number which is the percentage of similarity between the two strings

2240


How do you determine the length of a string value that was stored in a variable?

642


define string ?

660


What is static memory allocation? Explain

625


Is c easier than java?

562


Write a c program to demonstrate character and string constants?

1676


Create a registration form application by taking the details like username, address, phone number, email with password and confirm password (should be same as password).Ensure that the password is of 8 characters with only numbers and alphabets. Take such details for 3 users and display the details. While taking input password must appear as “****”.

2640