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
add.c
Incometax problem v0.1
A_141128_MatricesSuma
3850
avance pregunta 2 guía 4 de módulo 3
Building squares using smallest amount of matches
menu
printf
B_141128_MatrizUnSoloIndice
Lab 8 part 2 v.05