Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
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
1
B_141202_funcionesString
función free()
time conversion1
Dangling
swap two numbers without arithematic operators
C141105_SwitchNotas
3.1.2 Matrix add/sub file concept
10
DISEÑO DE TECLADO
6 ejercicio trabajo semanal 4