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

Answer Posted / shruti

y = 7..

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is c token?

608


Define the scope of static variables.

604


What is array of structure in c programming?

749


What does p mean in physics?

581


Write a code to generate a series where the next element is the sum of last k terms.

732






What does %2f mean in c?

674


Why c is called top down?

626


Explain what are global variables and explain how do you declare them?

637


What is the best style for code layout in c?

631


Given below are three different ways to print the character for ASCII code 88. Which is the correct way1) char c = 88; cout << c << " ";2) cout.put(88);3) cout << char(88) << " "; a) 1 b) 2 c) 3 d) constant

667


What is the size of enum in bytes?

586


What are qualifiers and modifiers c?

546


Define macros.

783


With the help of using classes, write a program to add two numbers.

618


How many main () function we can have in a project?

611