/* http://native-code.blogspot.com */ #include<stdio.h> #include<conio.h> void f1(int i1,int j1) { int t; t=i1; i1=j1; j1=t; printf("/* http://native-code.blogspot.com */\n\nin funtion after swaping i=%d j=%d",i1,j1); } void main() { int i,j; int t; i=10; j=20; f1(i,j);// function call printf("\n after swap i=%d",i); printf("\n after swap j=%d",j); getch(); } /* http://native-code.blogspot.com */
Home
» C
» Function
» Swapping
» How to do swap values between two variables using call by value method in C ?
How to do swap values between two variables using call by value method in C ?
January 17, 2014
Related Posts:
- Smallest of two numbers in CPP using Function
- How to Swapping of two variables using Python?
- JAVA Program To Swap Value Without Help Of Third Variable
- JAVA Program To Swap Value Using Third Variable
- How to do swap values between two variables using call by value method in C ?
- C program to print 1 to 100 except 60 to 70.
- Binary Search Tree Creation And Traversal Using Recursion Technique In C
- Show Inorder And Preorder Traversal Of A Tree Using C
- Push And Pop In Stack Using Linked List In C
- How To Push Or Pops Elements From A Stack Using Array In C
- Factorial of a number using function in CPP
- Simple Function calling program in CPP
- Swapping of two number in CPP using Function
- Multiplication table of a number in CPP using Function
Post a Comment