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
When we use void main and int main?
How can you find the day of the week given the date?
What is the use of getchar() function?
What are linker error?
What is the usage of the pointer in c?
typedef enum { html, java, javascript, perl, cgi } lang;The above statement defines a : a) Union b) User defined type c) Enumerated variable d) none
How can I find the modification date of a file?
What is static and volatile in c?
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
How do you determine the length of a string value that was stored in a variable?
define string ?
What is static memory allocation? Explain
Is c easier than java?
Write a c program to demonstrate character and string constants?
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 “****”.