Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
swipe the numbers in cyclic way
//gcc 5.4.0 #include <stdio.h> void cyclicSwap(int *a,int *b,int *c); int main() { int a, b, c; printf("Enter a, b and c respectively: "); scanf("%d %d %d",&a,&b,&c); printf("Value before swapping:\n"); printf("a = %d \nb = %d \nc = %d\n",a,b,c); cyclicSwap(&a, &b, &c); printf("Value after swapping:\n"); printf("a = %d \nb = %d \nc = %d",a, b, c); return 0; } void cyclicSwap(int *a,int *b,int *c) { int temp; // swapping in cyclic order temp = *b; *b = *a; *a = *c; *c = temp; }
run
|
edit
|
history
|
help
0
Date
ATM
object-oriented C by Henry Kroll III www.thenerdshow.com
b=1 c=1
gets.c
Assignment 3
funciones matrices
Lab6 v1.1 Sin,cos,tan,cot
Project 3 part 2 Book v10.1
fgets and basic string manipulation