Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
pointer
//clang 6.0.0 #include <stdio.h> int main(void) { int a = 10; int b = 20; int temp = 0; int * pa = NULL; int * pb = NULL; pa = &a; pb = &b; printf("Pred prohozenim:\n"); printf("a = %d,\t\t &a = %p,\t\t b = %d,\t &b = %p\n*pa = %d,\t pa = %p,\t\t *pb = %d,\t pb = %p. \n\n", a, &a, b, &b, *pa, pa, *pb, pb); temp = *pa; *pa = *pb; *pb = temp; printf("Po prohozeni:\n"); printf("a = %d,\t\t &a = %p,\t\t b = %d,\t &b = %p\n*pa = %d,\t pa = %p,\t\t *pb = %d,\t pb = %p. \n\n", a, &a, b, &b, *pa, pa, *pb, pb); return 0; }
run
|
edit
|
history
|
help
0
strchr
Use of Arithmetic Operator
0002
fun kce
Ashar
Euclides 2
Tablero de ajedrez
Cuadrado asteriscos hueco con regalito
definice funkce
Vectores: Llena vector con números al azar