[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.

C Programming :: Declarations and Initializations - Discussion

Home > C Programming > Declarations and Initializations > MCQs Questions Discussion

39 / 54

Find the output for the following C program

#include <stdio.h>
int main()
{ 
     int x=2,y=6,z=6;
 x=y==z;
 printf("%d",x);
 }

A3

B0

CNone of these

D1

Answer: Option (Login/Signup)

Show Explanation

x=y==z;    Result is 1 as y==z is True, as 6==6.

                 Then, 1 will be assigned to x

Hence, option D is correct.

Asked In :: Cisco

Post Your Answer Here:     

Reply    
Rate This: +0 -0
    Report


Report Error

Please Login First Click Here