jazykc
2013.3
upoljazykc
Main Page
Related Pages
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Typedefs
Macros
Pages
predani-parametru-odkazem
swap.c
Go to the documentation of this file.
1
7
void
swap_c_nefunguje (
int
a,
int
b) {
8
int
temp;
//pomocna promenna na prehozeni
9
temp = a;
10
a = b;
11
b = temp;
12
}
13
14
void
swap (
int
*a,
int
*b) {
15
int
temp;
16
temp = *a;
17
*a = *b;
18
*b = temp;
19
}
20
21
/* totez, ale pomoci minimalni madarske notace:
22
*/
23
void
iswap (
int
*pi1,
int
*pi2) {
24
int
temp;
25
temp = *pi1;
26
*pi1 = *pi2;
27
*pi2 = temp;
28
}
Generated on Sat Dec 7 2013 22:57:26 for jazykc by
1.8.5