Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
12
Task/Boolean-values/Little/boolean-values.little
Normal file
12
Task/Boolean-values/Little/boolean-values.little
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
int a = 0;
|
||||
int b = 1;
|
||||
int c;
|
||||
string str1 = "initialized string";
|
||||
string str2; // "uninitialized string";
|
||||
|
||||
if (a) {puts("first test a is false");} // This should not print
|
||||
if (b) {puts("second test b is true");} // This should print
|
||||
if (c) {puts("third test b is false");} // This should not print
|
||||
if (!defined(c)) {puts("fourth test is true");} // This should print
|
||||
if (str1) {puts("fifth test str1 is true");} // This should print
|
||||
if (str2) {puts("sixth test str2 is false");} // This should not print
|
||||
Loading…
Add table
Add a link
Reference in a new issue