Answers for "The elements are store at contiguous memory locations in C++"

C++
0

The elements are store at contiguous memory locations in C++

#include <iostream>
using namespace std;

int main()
{

	int array[5], i;

	cout << "Size of integer in this compiler is "
		<< sizeof(int) << "\n";

	for (i = 0; i < 5; i++)
	
		cout << "Address array[" << i << "] is " << &array[i]
			<< "\n";

	return 0;
}
Posted by: Guest on May-05-2022

Code answers related to "The elements are store at contiguous memory locations in C++"

Browse Popular Code Answers by Language