why did it's output is 100? not20. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

why did it's output is 100? not20.

#include <iostream> using namespace std; void myFunc(int *x) { *x = 100; } int main() { int var = 20; myFunc(&var); cout << var; }

25th Sep 2017, 4:53 PM
Shivani Goyal
0 Answers