Get Off-Campus Placement Jobs Info !!!
Programs asked in Mettl Coding Round
Click To Practce List of Programs asked in Nagarro !!!

Cisco Written Test Qs.(Technical Aptitude) :: Declarations and Initializations - Discussion

11 / 119

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

In line no. 5-

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