0
#include <stdio.h> int main() { int x = 5; if (x<1); {printf("Hello");} }
Why hello is displaying even if the condition is not true
2 odpowiedzi
+ 2
Because you have used semicolon after if(x<1), your printf statement is no longer a part of if() block. Remove semicolon.
+ 1
Hey thank Uuu