• Courses
  • Code Compiler
  • Discuss
  • Pricing
  • Teams
Menu
0

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

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

arrayspointerscppnew
19th Mar 2021, 12:10 PM
__n
__n - avatar
4 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

Often have questions like this?

Learn more efficiently, for free:

  • Introduction to Python

    7.1M learners

  • Introduction to Java

    4.7M learners

  • Introduction to C

    1.5M learners

  • Introduction to HTML

    7.5M learners

See all courses
Hot today
Is this realistic enough?
1 Votes
"Which is harder to master — Machine Learning or Cybersecurity? And why?"
1 Votes
Need friends
0 Votes
"What’s the best way to combine creativity and coding? Can storytelling improve web apps?"
1 Votes
MASS N NUMBER OF OBJECT DELETION FROM A CLASS
0 Votes
I am a beginner, please teach me how to use Python
0 Votes
Web Development
0 Votes
Can u learn multiple language at the same time, without misplacing the formats of each with the other
0 Votes
Python
1 Votes
Can someone please explain python for me
0 Votes