Horje
how to find size of int array in c++ Code Example
how to find size of int array in c++
#include <iostream>
using namespace std;

int main() {
	int arr[] = {10,20,30,40,50,60};
	int arrSize = sizeof(arr)/sizeof(arr[0]);
	cout << "The size of the array is: " << arrSize;
	return 0;
{




Cpp

Related
c++ random number generator uniform distribution Code Example c++ random number generator uniform distribution Code Example
c++ remove text file Code Example c++ remove text file Code Example
how to get size of 2d vector in c++ Code Example how to get size of 2d vector in c++ Code Example
how to find 2d vector length cpp Code Example how to find 2d vector length cpp Code Example
c++ clear char array Code Example c++ clear char array Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8