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
Date
String Manipulation
Array Incrementing by 1
Lab 9 v0.6
Binary to Integer (C)
2017_1117_TARTAGLIA
use_of_bool_in_loop
CONTADOR DE PALABRAS
hello
Lab6 v1.2 Sin,cos,tan,cot