
- C++ Basics
- C++ Home
- C++ Overview
- C++ Environment Setup
- C++ Basic Syntax
- C++ Comments
- C++ Data Types
- C++ Variable Types
- C++ Variable Scope
- C++ Constants/Literals
- C++ Modifier Types
- C++ Storage Classes
- C++ Operators
- C++ Loop Types
- C++ Decision Making
- C++ Functions
- C++ Numbers
- C++ Arrays
- C++ Strings
- C++ Pointers
- C++ References
- C++ Date & Time
- C++ Basic Input/Output
- C++ Data Structures
- C++ Object Oriented
- C++ Classes & Objects
- C++ Inheritance
- C++ Overloading
- C++ Polymorphism
- C++ Abstraction
- C++ Encapsulation
- C++ Interfaces
An Uncommon representation of array elements in C/C++
This is a simple C++ program of an uncommon representation of array elements.
#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; }
Output
7 7 7 6 6
- Related Articles
- An Uncommon representation of array elements in C++ program
- Rank of All Elements in an Array using C++
- Equalize an array using array elements only in C++
- Print uncommon elements from two sorted arrays
- Total number of elements present in an array in C#
- Program to find uncommon elements in two arrays - JavaScript
- Construct an array from GCDs of consecutive elements in given array in C++
- Count distinct elements in an array in C++
- Copying BitArray elements to an Array in C#
- Inserting elements in an array using C Language
- Product of non-repeating (distinct) elements in an Array in C++
- Count and Sum of composite elements in an array in C++
- Can you assign an Array of 100 elements to an array of 10 elements in Java?
- Array Representation Of Binary Heap
- Finding the longest substring uncommon in array in JavaScript

Advertisements