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 is the main use of c where it can use the c

2 Answers   Infosys,


What is a function in c?

0 Answers  


What is "Hungarian Notation"?

0 Answers   Celstream,


In which layer of the network datastructure format change is done

0 Answers   Honeywell,


Explain what?s happening in the first constructor: public class c{ public c(string a) : this() {;}; public c() {;} } How is this construct useful?

1 Answers  






What is the difference between array_name and &array_name?

0 Answers  


Why is c not oop?

0 Answers  


what is op? for(c=0;c=1000;c++) printf("%c",c);

21 Answers   Trigent,


What are the disadvantages of a shell structure?

0 Answers  


What ios diff. Between %e & %f?

3 Answers   Honeywell,


12. Look at the Code: main() { int a[]={1,2,3},i; for(i=0;i<3;i++) { printf("%d",*a); a++; } } Which Statement is/are True w.r.t the above code? I.Executes Successfully & Prints the contents of the array II.Gives the Error:Lvalue Required III.The address of the array should not be changed IV.None of the Above. A)Only I B)Only II C)II & III D)IV

4 Answers   Accenture,


5. distance conversion: Convert a distance from miles to kilometers .there are 5280 feets per mile,12 inches per foot .2.54 centimeters per inch and 100000centimeters per kilometer

4 Answers  


Categories