Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

variable swap in c

// swap variables in C
void swap(int *x, int *y){
	int temp = *x;
    *x = *y;
    *y = temp;
}
swap(&a, &b); // address of a and b
Source by devsenv.com #
 
PREVIOUS NEXT
Tagged: #variable #swap
ADD COMMENT
Topic
Name
3+9 =