

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
An Uncommon representation of array elements in C/C++
<p>This is a simple C++ program of an uncommon representation of array elements.</p><pre class="prettyprint notranslate">#include<iostream> using namespace std; int main() { int array[5] = {7,7,7, 6, 6}; for (int i = 0; i < 5; i++) cout<<*(array+i); return 0; }</pre><h2>Output</h2><pre class="result notranslate">7 7 7 6 6</pre>
- Related Questions & Answers
- An Uncommon representation of array elements in C++ program
- Array Representation Of Binary Heap
- Rank of All Elements in an Array using C++
- Print uncommon elements from two sorted arrays
- Total number of elements present in an array in C#
- Equalize an array using array elements only in C++
- Can you assign an Array of 100 elements to an array of 10 elements in Java?
- Array of Arrays Representation in Data Structure
- Program to find uncommon elements in two arrays - JavaScript
- Construct an array from GCDs of consecutive elements in given array in C++
- Rearranging elements of an array in JavaScript
- Count distinct elements in an array in C++
- Product of non-repeating (distinct) elements in an Array in C++
- Count and Sum of composite elements in an array in C++
- C program to reverse an array elements
Advertisements