What is the output of the below code?
#include <bits/stdc++.h>
using namespace std;
int main()
{
if (~0 == 1)
cout << "Yes";
else
cout << "No";
}
#include <stdio.h>
int main() {
if (~0 == 1)
printf("Yes");
else
printf("No");
return 0;
}
public class Main {
public static void main(String[] args) {
if (~0 == 1)
System.out.println("Yes");
else
System.out.println("No");
}
}
if ~0 == 1:
print("Yes")
else:
print("No")
if (~0 === 1)
console.log("Yes");
else
console.log("No");
Yes
No
Error
None
This question is part of this quiz :
Top MCQs on Bitwise Algorithms and Bit Manipulations with Answers