main()

{

int i=5,j=10;

i=i&=j&&10;

printf("%d %d",i,j);

}



main() { int i=5,j=10; i=i&=j&&10; printf("%d %d"..

Answer / susie

Answer :

1 10

Explanation:

The expression can be written as i=(i&=(j&&10)); The inner
expression (j&&10) evaluates to 1 because j==10. i is 5. i =
5&1 is 1. Hence the result.

Is This Answer Correct ?    12 Yes 4 No

Post New Answer

More C Code Interview Questions

main() { extern int i; { int i=20; { const volatile unsigned i=30; printf("%d",i); } printf("%d",i); } printf("%d",i); } int i;

1 Answers  


main() { int i=0; for(;i++;printf("%d",i)) ; printf("%d",i); }

1 Answers   Zoho,


main() { int y; scanf("%d",&y); // input given is 2000 if( (y%4==0 && y%100 != 0) || y%100 == 0 ) printf("%d is a leap year"); else printf("%d is not a leap year"); }

1 Answers  


write a c program to Create a registration form application by taking the details like username, address, phone number, email along 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 5 users and display the details. In place of password display “****”. (Use Structures).

0 Answers   CDAC, College School Exams Tests,


could you please send the program code for multiplying sparse matrix in c????

0 Answers  






main() { float f=5,g=10; enum{i=10,j=20,k=50}; printf("%d\n",++k); printf("%f\n",f<<2); printf("%lf\n",f%g); printf("%lf\n",fmod(f,g)); }

1 Answers  


write a c-program to find gcd using recursive functions

5 Answers   HTC, Infotech,


what is brs test reply me email me kashifabbas514@gmail.com

0 Answers  


Extend the sutherland-hodgman clipping algorithm to clip three-dimensional planes against a regular paralleiepiped

1 Answers   IBM,


Given a spherical surface, write bump-mapping procedure to generate the bumpy surface of an orange

0 Answers  


What is the match merge ? compare data step match merge with proc sql merge - how many types are there ? data step vs proc sql

0 Answers  


Write a c program to search an element in an array using recursion

1 Answers   Wipro,


Categories