Created
April 6, 2023 11:37
-
-
Save ctgnauh/b1bffe4d721d59436c89c5b06e4cb8eb to your computer and use it in GitHub Desktop.
Revisions
-
ctgnauh created this gist
Apr 6, 2023 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,24 @@ #include <stdio.h> int firstFunction() { printf("First Function\n"); return 0; } int secondFunctionWithArgumentOne(int one) { printf("Second Function\n"); return one; } int theOne() { printf("One\n"); return 1; } int main() { printf("This is the strict evaluation: \n"); int foo = firstFunction() + secondFunctionWithArgumentOne(theOne()); printf("\nThis is the short circuit evaluation: \n"); return firstFunction() && secondFunctionWithArgumentOne(theOne()); }