Home > interview questions related to c language

The following program fragment

int a=4, b=6;

printf(“%d”,a!=b);

 

A)  Outputs an error message
B)  Prints 0
C)  Prints 1
D)  None of the above
Answer: Prints 1

    Leave a Comment

    Your email address will not be published. Required fields are marked *