Source Code Create a value with Confidence...

Prgramming Language : C

C Program to Implement Array of Pointer Example

Program

Output

#include <stdio.h> const int MAX = 3; int main () { int var[] = {10, 100, 200}; int i, *ptr[MAX]; for ( i = 0; i < MAX; i++) { ptr[i] = &var[i]; /* assign the address of integer. */ } for ( i = 0; i < MAX; i++) { printf("Value of var[%d] = %d\n", i, *ptr[i] ); } return 0; } Value of var[0] = 10 Value of var[1] = 100 Value of var[2] = 200

Learn more Concept in Programing in C


* Introduction
* Hello World
* Data Types
* Variable
* Constants
* #define
* Storage Classes
* Sizeof()
* The ? : Operator
* Conditional Operator
* Arithmetic Operators
* Relational Operators
* Logical Operators
* Bitwise Operators
* Assignment Operators
* Increment Operator
* Decrement Operator
* Logical bitwise Operator
* Shift Operator
* simple if
* if...else
* if...else if...else
* if...else if ladder
* Nested if
* switch...case

* Nested switch...case
* while loop
* for loop
* do...while loop
* nested for loops
* nested While loops
* nested do...while loops
* break statement
* continue statement
* goto statement
* The Infinite Loop
* User Define Function
* call by value Function
* call by Reference Function
* Function no argument,no return Type
* Function argument,no return Type
* Function no argument,return Type
* Function argument,return Type
* Local Variables
* Global Variables
* One-Dimensional Arrays
* Two-Dimensional Arrays
* Multi-Dimensional Arrays
* Passing Arrays as Function Arguments
* Return Array from Function

* Pointer to an Array
* Pointers
* NULL Pointer
* Incrementing a Pointer
* Decrementing a Pointer
* Pointer Comparisons
* Array of pointers
* Pointer to Pointer
* Passing pointers to functions
* Return pointer from functions
* strcpy(s1, s2) - Copy String
* strcat(s1, s2) - Concate String
* strlen(s1) - Length of String
* strcmp(s1, s2) - Compare String
* strchr(s1, ch) - Match String
* strstr(s1, s2) - Match String
* Structure
* Structures as Function Arguments
* Pointers to Structures
* Union
* Typedef
* Auto Variable
* External Variable
* Satic Variable
* Register Variable

* File I/O
* Getc()
* Putc()
* FGets()
* FPuts()
* Fscanf()
* Fprintf()
* Fread()
* Fwrite()
* Malloc()
* Calloc()
* Ftell()
* rewind()
* getchar()
* putchar()
* gets()
* puts()
* scanf()
* printf()


Learn Programming Language


* Android
* ASP.NET
* AngularJS
* AJAX ToolKit
* BootStrap

* Programing C
* Programing C++
* Programing C#
* CSS
* CSS-3

* HTML
* HTML-5
* Java
* JavaScript
* PHP

* J-Query
* J-QueryUI
* JQuery-Grid
* JQuery-Chart
* Crystal Report

* LISP
* MS-Word
* MS-PowerPoint
* MS-Excel
* SQLite

* MySQL
* Oracle
* Python
* Pl/SQL

* SQL Server
* VB.NET
* VBScript
* Visual Basic

Free Download Final Year Project


* Android
* ASP.NET
* GAMES

* AngularJS
* BootStrap
* WINDOWS

* Programing C
* Programing C++
* WEBSITE

* Programing C#
* Java
* MS-Access

* PHP
* MySQL

* Oracle
* SQL

* VB.NET
* Visual Basic