Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;
- #if DEBUG
- #define ASSERT(_x) Assert(_x)
- #else
- #define ASSERT(_x)
- #endif
- ASSERT(test); // Results in null statement in non-debug builds
- while (*(dst++) = *(src++))
- ;
- void foo(void)
- {
- // ...
- exit:
- ;
- }
- while (somethingWithSideEffects()) ;
- if ( !( overly complex condition ) )
- {
- do stuff
- }
- if ( overly complex condition )
- ; // do nothing
- else
- {
- do stuff
- }
- while (!kbhit())
- ;
- if( scanf("%d",&integer) == 0 )
- {
- while( getchar() != 'n' ) ;
- // ....
- }
- for (;;) // Loop "forever"
- for (int i=10; i--; ) // 9..0
- if(condition1)
- /* do nothing */ ;
- else if(condition2)
- do_something;
- else do_something_else;
- if(!condition1 && condition2)
- do_something;
- else if(!condition1)
- do_something_else;
- if(!condition1) {
- if(condition2)
- do_something;
- else do_something_else;
- }
Add Comment
Please, Sign In to add comment