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

15.what is the disadvantage of using macros? 16.what is the self-referential structure? 17.can a union be self-referenced? 18.What is a pointer? 19.What is the Lvalue and Rvalue? 20.what is the difference between these initializations? 21.Char a[]=”string”; 22.Char *p=”literal”; 23.Does *p++ increment p, or what it points to?

1 Answers  


How many bytes are occupied by near, far and huge pointers (dos)?

0 Answers  


how will you write a program on linked lists using JAVA programming???????????

1 Answers   Keane India Ltd,


What is the significance of scope resolution operator?

0 Answers   Agilent, ZS Associates,


Write a program to compute the following 1!+2!+...n!

4 Answers  


Wt are the Buses in C Language

0 Answers   Infosys,


What is the right way to use errno?

0 Answers  


write an algorithm to display a square matrix.

0 Answers  


Consider the following C program. #include <stdio.h> int main() { int i; for (i=0;i<3;++i) { fork();fork(); } } How many processes are created when running this program (including the initial one)? Explain

2 Answers  


What are local variables c?

0 Answers  


What are the different properties of variable number of arguments?

0 Answers  


what is a function pointer and how all to declare ,define and implement it ???

4 Answers   Honeywell,


Categories