I seek explanation of following question | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

I seek explanation of following question

#include<stdio.h> void function1(int**,int**); int main() { int a=5,b=7; int *p,*q; p=&a,q=&b; function1(&p,&q); printf("%d %d %d %d",*p,*q,a,b); return 0; } void function1(int **p,int **q) { int **t; *t=*p; **p=**q+**p; *p=*q; **q=**p-**q; *q=*t; **p=**p-**q; }

17th Apr 2019, 5:04 PM
Satyajeet Kumar
Satyajeet Kumar - avatar
1 Answer
0
the function part is use to swap 2 numbers, if you understand pointer, explaining further won't be a problem but am just kind of lazy to type😉😉😉
17th Apr 2019, 9:01 PM
✳AsterisK✳
✳AsterisK✳ - avatar