Printing Address Of Array Variables


// printing address of array variables
#include<stdio.h>
#include<conio.h>
void main()
{
	int num[]={24,34,12,44,56,17};// num[0]=24 num[1]=34 num[2]=12 ..
	int i;
	clrscr();
	for(i=0;i<=5;i++)
	{
		printf("\n Element number :%d",i);
		printf("\n Address :%u",&num[i]);
	}
	getch();
}

Login To Download Source Code

Leave a Comment:

Login To Comment

List Of Programs


Goto Examples

Operators

Looping

Number Conversion

Pattern Design

Arrays

Matrix Examples

Sorting Examples

String Function

Change Case

String In C

Maths Functions

User Defined Functions

Recursive Functions

Pointer

Structure

File Concept

Calender Programming