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

Answer Posted / vikraman85

compile time err wil occur..
Have 2 use == opr..

Is This Answer Correct ?    3 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what is the difference between text files and binary files?

619


PLS U SENS ME INTERVIEW O. MY EMAIL ADD, SOFIYA.SINGH@GMAIL.COM

1714


Why c is called a middle level language?

634


Is there any data type in c with variable size?

633


What is the size of structure in c?

702






What is derived datatype in c?

637


Write a program to check palindrome number in c programming?

601


What are pointers? What are stacks and queues?

579


Can you please explain the difference between malloc() and calloc() function?

621


What is meant by preprocessor in c?

536


What is operator promotion?

629


What is new line escape sequence?

810


What is the difference between local variable and global variable in c?

691


What is console in c language?

609


What are the primitive data types in c?

579