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

Is c procedural or object oriented?

0 Answers  


What is optimization in c?

0 Answers  


What are the types of bitwise operator?

0 Answers  


What are the languages are portable and platform independent?Why they are like that?

1 Answers   Excel, Satyam,


int main() { int i=1; switch(i) { case '1': printf("hello"); break; case 1: printf("Hi"); break; case 49: printf("Good Morning"); break; } return 0; }

3 Answers  






why we wont use '&' sing in aceesing the string using scanf

0 Answers   HCL,


What is the purpose of ftell?

0 Answers  


Write a program with dynamically allocation of variable.

0 Answers   Atos Origin,


what is disadvantage of pointer in C

13 Answers   Tech Mahindra,


What is the c value paradox and how is it explained?

0 Answers  


The __________ attribute is used to announce variables based on definitions of columns in a table?

0 Answers  


WHAT IS HEADER?

8 Answers   ProKarma, TCS,


Categories