shafana_123
New Coder
Hello, I'm fairly new, and I was wondering, why does
still print "Hello world? Even though it's using the logical NOT operator...
As well as if it was used as a condition in a while() loop...
Why does it print only once? I thought the while() loop required the condition to be True, in order to print. I kind of understand why it prints "Hello world" infinitely without the !.
Thank you
C:
!(printf("Hello world"));
still print "Hello world? Even though it's using the logical NOT operator...
As well as if it was used as a condition in a while() loop...
C:
while(!(printf("Hello world"))) {}
Why does it print only once? I thought the while() loop required the condition to be True, in order to print. I kind of understand why it prints "Hello world" infinitely without the !.
Thank you