What will the code below print when it is executed?
  int x = 3, y = 4;

        if (x = 4)
                y = 5;
        else
                y = 2;

        printf ("x=%d, y=%d
",x,y);


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C Interview Questions

What 'lex' does?

0 Answers   Tech Mahindra,


write a program that will print %d in the output screen??

9 Answers   Infosys,


Explain what are linked list?

0 Answers  


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 “****”.

0 Answers  


What is exit() function?

0 Answers  






Explain how do you determine whether to use a stream function or a low-level function?

0 Answers  


List some basic data types in c?

0 Answers  


logic for generating all the combinations of the any number of given letters. ex::::::::: if a,b,c,d are given the o/p should be abcd,dcba,dbac,bcad,................ 4*3*2*1 combinations............

2 Answers   Infosys,


What is actual argument?

0 Answers  


Can a variable be both const and volatile?

0 Answers  


What is the best way to comment out a section of code that contains comments?

0 Answers  


WHAT IS MAXIMUM SIZE OF AN ARRAY IN C LANGUAGE?

8 Answers   Carphone Warehouse, IBM, SAS,


Categories