Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- final int something;
- if ( today == Friday )
- something = 7;
- else
- something = 42;
- final int something;
- if ( today == Friday )
- something = 7;
- if ( today != Friday )
- something = 42;
- const int something = ( today == Friday ) ? 7 : 42;
- #include<stdio.h>
- int main ( void )
- {
- printf ( "wibblen" );
- {
- const int x = 10;
- printf ( "x = %dn", x );
- }
- return 0;
- }
- const int foo;
- foo = 4;
- int * const foo;
- foo = 4;
- int a, b, c;
- a = 12;
- // do some stuff with a
- b = 17;
- // do some stuff with a and b
- c = 23;
- // do some stuff with a, b, and c
- int a = 12;
- // do some stuff with a
- {
- int b = 17
- // do some stuff with a and b
- {
- int c = 23;
- // do some stuff with a, b and c
- }
- }
- int a = 12;
- // do some stuff with a
- int b = 17
- // do some stuff with a and b
- int c = 23;
- // do some stuff with a, b and c
- void func()
- {
- int y;
- //do assertions
- assert(something);
- {
- int const x = 5;
- // function body
- }
- }
- const int x = 2;
- const int x;
- x=2;
- const int * p;
- extern const int x;
- const int n = 0;
- *((int*)&n) = 23;
Advertisement
Add Comment
Please, Sign In to add comment