Run Code
|
Code Wall
|
Users
|
Misc
|
Feedback
|
About
|
Login
|
Theme
|
Privacy
pointer_swap
//gcc 5.4.0 #include <stdio.h> void swap(int *a,int *b) { int *t; *t=*a; *a=*b; *b=*t; printf("%d\n%d",*a,*b); } int main() { int p=3,q=2,*a,*b; a=&p; b=&q; swap(a,b); return 0; }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
C_141113_Primo01
string_ptr_to_fct_param
decimalespi
Multiple If statements v1
poinres1
Spring 2017 Project 2 v.02
Funciones en C
A_141125_MenorMayor2
If Statement/ Decrements V2
A.c
Please log in to post a comment.