Take FREE!! Online Cocubes Mock Test to Crack various Companies Written Exams.
Practice List of Paytm Coding Questions !!!
Take 30+ FREE!! Online Arithmetic Aptitude Mock test to crack any Exams.

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

11 / 122

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