Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Projdi si to
//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", a, &a, b, &b, *pa, pa, *pb, pb); printf("\t\t &pa = %p,\t\t\t\t &pb = %p\n", &pa, &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", a, &a, b, &b, *pa, pa, *pb, pb); printf("\t\t &pa = %p,\t\t\t\t &pb = %p\n", &pa, &pb); return 0; }
run
|
edit
|
history
|
help
0
13 12 2014 20:25
resize.c
Cvičenie -č.6-UDP
correccion
Cuadrado asteriscos solido
cv2
Vzdalenost makro inline
Numero pi
random()%N stddev
fun kce