0

What will be the output

#include<iostream.h> Using namespace std; Int main(){ Int x = 2, y=0; Int a=x && y; cout<<a; }

28th May 2019, 12:33 PM
Lhendu Len's
Lhendu Len's - avatar
3 Answers
+ 3
Thank you for asking. The code won't compile. It's "iostream" without ".h". "Using" and "Int" must not be capitalized. If you remove all errors, the output will be 0 because 2 && 0 is false (0)
28th May 2019, 12:39 PM
Anna
Anna - avatar
+ 1
A compilation error will be raised as At first, the library is wrong : #include<iostream.h> instead of #include <iostream> Second, U from Using is Capital Third, Same issue with Int
28th May 2019, 12:41 PM
Prokopios Poulimenos
Prokopios Poulimenos - avatar
+ 1
Thank you for your kind response I will take care about this error.
28th May 2019, 12:42 PM
Lhendu Len's
Lhendu Len's - avatar