Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <stdbool.h>
- bool TestFnc()
- {
- printf("TestFnc\n");
- return true;
- }
- int main()
- {
- bool a = false;
- if( a = TestFnc(); a )
- {
- printf("1\n");
- }
- else
- {
- printf("2\n");
- }
- return 0;
- }
Advertisement