why did it's output is 100? not20. | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 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 Resposta