An open API service indexing awesome lists of open source software.

https://github.com/pedrozappa/readarraywithpointer

Printing Array Elements and Addresses using Pointers
https://github.com/pedrozappa/readarraywithpointer

Last synced: 5 months ago
JSON representation

Printing Array Elements and Addresses using Pointers

Awesome Lists containing this project

README

          

# README: readArrayWithPointer.c

## Table of Contents
- [Introduction](#introduction)
- [Usage](#usage)

## Introduction
`readArrayWithPointer.c` is a simple C program that demonstrates reading and printing array elements using pointers. The program reads 10 integer elements, stores them in an array, and then prints the address and value of each element using pointer arithmetic. [Source 1](https://www.freecodecamp.org/news/how-to-write-a-good-readme-file/)

## Usage
1. Compile the program using a C compiler, such as GCC.
```
gcc readArrayWithPointer.c -o readArrayWithPointer
```
2. Run the compiled program.
```
./readArrayWithPointer
```
3. Follow the prompts to enter 10 integer elements. [Source 2](https://docs.github.com/articles/markdown-basics)