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

How can I find the size of the array without count it?

https://code.sololearn.com/c3hm76wtanP9/?ref=app

c++functionsarrays
27th Aug 2020, 9:37 PM
Joseph
3 Answers
+ 4
int size= sizeof(x)/sizeof(x[0]);
27th Aug 2020, 9:42 PM
Jayakrishna 🇼🇳
+ 4
https://www.sololearn.com/learn/CPlusPlus/1633/
27th Aug 2020, 9:43 PM
Kevin ★
+ 2
Thanks Jayakrishna🇼🇳 Kevin ★
27th Aug 2020, 9:50 PM
Joseph

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
Can i code here? Or just learn?
1 Votes
Hi, please I'm interested in learning Html, css and Javascript. I need a guidance or any app recommendation that will make me
1 Votes
Why Lazy?
1 Votes
Please help a beginner choose a programming language
2 Votes
Quiz App: Step 3, Restart Button
0 Votes
Catch the ball
0 Votes
It's app not running properly?
1 Votes
Running a python code
1 Votes
Web development
0 Votes
PHP
0 Votes