What is the output of the following code?

int main()
{
int a[3]={10,11,12}
if (a==10)
printf("Hi");
else if(a==11)
printf("Hello");
else
printf("Goodbye");
}

Posted on by