Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Example
- //libs..
- void example( int *forTest )
- void example1( int forTest )
- int main( int argc, char **argv )
- {
- int a = 5;
- example( &a );
- printf( "After test: %d", a );
- a = 5;
- example1( a );
- printf( "After test: %d", a );
- return 0;
- }
- void example( int *forTest )
- {
- printf( "Before test: %d", forTest );
- forTest = 6;
- }
- void example1( int forTest )
- {
- printf( "Before test: %d", forTest );
- forTest = 6;
- }
Add Comment
Please, Sign In to add comment