Unconventional representation of array elements in C/C++

王林
Release: 2023-08-26 17:41:19
forward
993 people have browsed it

Unconventional representation of array elements in C/C++

This is a simple C program for unconventional representation of array elements.

#include 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; }
Copy after login

Output

7 7 7 6 6
Copy after login

The above is the detailed content of Unconventional representation of array elements in C/C++. For more information, please follow other related articles on the PHP Chinese website!

source:tutorialspoint.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!