Why does “hello” evaluate as true in a boolean condition?
问题 I have been doing work in C language as it was my first language from where i started.This time i was doing some coding with if else statement...and i find something which i cannot understand why it was happening.The code is as follow #include<stdio.h> #include<conio.h> void main() { printf("How If - Else works\n"); if("hello") { printf("Inside if\n"); } else { printf("Inside else\n"); } getch(); } In this the output was Inside if....i want to know how this thing get evaluated inside the if