Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
swapping using call by reference
#include<stdio.h> void swap( int *x, int *y ) // call by refrence { int t ; t = *x ; *x = *y ; *y = t ; printf( "\nx = %d y = %d", *x,*y); } int main( ) { int a = 10, b = 20 ; swap ( &a, &b ) ; // passing the address of values to be swapped printf ( "\na = %d b = %d", a, b ) ; }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
CALCULADORA
bitwise operations
a
2.1 Comparision of Matrix Transpose Execution Time
C141105_SwitchNotas
upper case letter.c
recursive
hello
thermal_containers
150112_FuncionesOrdenArray
Please log in to post a comment.