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

What is pass by reference in c?

607


Why isn't any of this standardized in c? Any real program has to do some of these things.

623


What is pointers in c with example?

578


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

1704


How do you use a pointer to a function?

630






can any one tel me wt is the question pattern for NIC exam

1554


I have a varargs function which accepts a float parameter?

577


What is the difference between malloc() and calloc()?

615


Is python a c language?

550


"C" language developed by "Dennis Ritchie" at AT & T. his remarks are a) too general, too abstract b) could deal with only specific problems c) lost generality of BCPL and B restored d) no remarks

653


How do you write a program which produces its own source code as output?

603


What is echo in c programming?

555


How pointers are declared?

560


Explain what is the difference between a free-standing and a hosted environment?

633


Explain what is the difference between functions getch() and getche()?

604