void func(int* i, int* j) { *i=*i * *i; *j=*j * *j; } int main() { int i=2, int j=3; func(&i, &i); Printf("%d, %d", i, j); | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

void func(int* i, int* j) { *i=*i * *i; *j=*j * *j; } int main() { int i=2, int j=3; func(&i, &i); Printf("%d, %d", i, j);

What is the Output and how this code will execute or run,?? Step by step explain

31st Mar 2021, 5:59 AM
Muhammad Usman Ali
Muhammad Usman Ali - avatar
3 Answers
+ 2
Hey there ali_øsman, If you'd like to know the output of the code just put it in a code playground and run it, you'll see the output. :) If you don't understand it, please clarify your question, add some more information. Thanks :)
31st Mar 2021, 6:18 AM
Matthew
Matthew - avatar
+ 1
code is truncated.. .. post code or link in description place. not in question place. Make better use of description place with clear details...... hope it helps....... https://www.sololearn.com/Discuss/2416942/?ref=app
31st Mar 2021, 7:23 PM
Jayakrishna 🇮🇳
0
Thanks Abol
31st Mar 2021, 8:36 AM
Muhammad Usman Ali
Muhammad Usman Ali - avatar