• Курсы
  • Компилятор кода
  • Обсуждения
  • Цены
  • 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 ответов
+ 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

Часто задают такие вопросы?

Учитесь эффективнее, бесплатно:

  • Введение в Python

    7.1M учащихся

  • Введение в Java

    4.7M учащихся

  • Введение в C

    1.5M учащихся

  • Введение в HTML

    7.5M учащихся

Смотреть все курсы
Актуальное сегодня
Functions in python
2 Votes
How to make a playground
1 Votes
How can you find whether a number is odd or even in a different way(other than (x%2==0))?
1 Votes
I need advice
1 Votes
Html 5 document question
1 Votes
this query always result to be incorrect from Sorting Data lesson
1 Votes
Python
0 Votes
Can someone explain inline and block elements please
0 Votes
𝙵𝙸𝙽𝙳 𝚃𝙷𝙴 𝙸𝙽𝙿𝚄𝚃 𝙾𝙵 𝚃𝙷𝙴 𝙿𝚁𝙾𝙶𝚁𝙰𝙼
1 Votes
Can you tell what is wrong with the code
0 Votes