pointer example program in C

pointer example program in C

What would be the output of following pointer program written in c

 

main( )

{

int a = 10, b = 20 ;

swapr ( &a, &b ) ;

printf ( “\na = %d b = %d”, a, b ) ;

}

swapr( int *x, int *y )

{

int t ; t = *x ; *x = *y ; *y = t ;

}

Introduction to Pointers in C

what would be output of the following pointer program

What wound be output of the following c program of function and pointer

c program example function and pointer

 

pointer c program example
pointer c program example