An Uncommon representation of array elements in C/C++

C++CServer Side ProgrammingProgramming

<p>This is a simple C++ program of an uncommon representation of array elements.</p><pre class="prettyprint notranslate">#include&lt;iostream&gt; using namespace std; int main() { int array[5] = {7,7,7, 6, 6}; for (int i = 0; i &lt; 5; i++) cout&lt;&lt;*(array+i); return 0; }</pre><h2>Output</h2><pre class="result notranslate">7 7 7 6 6</pre>
raja
Updated on 30-Jul-2019 22:30:25

Advertisements