Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

What will be the output of the following C code?
#include <stdio.h>
int main()
{
if (~0 == 1)
printf(“yes\n”);
else
printf(“no\n”);
}

What will be the output of the following C code?
#include <stdio.h>
int main()
{
if (~0 == 1)
printf(“yes\n”);
else
printf(“no\n”);
}
a) Yes
b) No
c) compile time error
d) undefined

Answer: b

Join The Discussion