What does new int[2]{1,2} mean | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What does new int[2]{1,2} mean

https://code.sololearn.com/cY9JFsz9KO2w/?ref=app Why *arr becomes 2 in output??

19th Mar 2021, 12:10 PM
__n
__n - avatar
2 Answers
0
I wants to ask that why *arr gives me 1??
19th Mar 2021, 12:28 PM
__n
__n - avatar
0
And also *(arr++)<<" "<<*arr+1; gives 1 3 ...why??
19th Mar 2021, 12:30 PM
__n
__n - avatar