boost learn study
Monday, March 31, 2014
Pointer Program Using Function (Pass By Reference)
Home
�
C Pointers
�
Pointer Program Using Function (Pass By Reference)
/*Pointer Program Using Function (Pass By Reference) */ #include
#include
void main() { int a,b; void interchange(int *, int *); clrscr(); printf("Enter the Two No."); scanf("%d%d",&a,&b); interchange(a,b); getch(); } void interchange(int *x, int *y) { int t; t = *x; *x = *y; *y = t; printf("A=%d B=%d", *x,*y); }
Read more �
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment