Program to define an array in c, C/C++ Programming

Program to define an array in c:

Write a program to define an array and print the value of array.

void main()

{

int a[10]={0,11,21,34,44,75,46,57,88,89},i,j,k;

clrscr();

printf("a=%d\n",a);

for (k=0;k<=9;k++)

{

printf("*(a+%d)=a[%d]=%d\n",k,k,*(a+k));

printf("*a+%d=%d\n",k,*a+k);

}

getch();

}

Posted Date: 10/19/2012 3:00:21 AM | Location : United States







Related Discussions:- Program to define an array in c, Assignment Help, Ask Question on Program to define an array in c, Get Answer, Expert's Help, Program to define an array in c Discussions

Write discussion on Program to define an array in c
Your posts are moderated
Related Questions
Simpson's Rule is a more accurate method of numerical integration than the method described in class. Using Simpson's Rule, the integral of a function f between a and b is approxim


What are the benefits of using friend classes? - Friend classes are useful when a class wants to hide features from users which are required only by another, tightly coupled cl

write a c program chat illustrates the creation of child process using fork system call. One process finds sum of even series and other process finds sum of odd series.

i need a program for finding the last fibonacci number

You must write a program that can both decrypt and encrypt a single word that is entered by the user. The initial choice of encryption and decryption is left up to the user. Addi

I need vsti program Project Description: Knowledge of vsti programs, and music is a plus, ex: nexus I will input the sounds I just need the interface built Skills required

Based on the automobile's model year and weight, the city of Cebu determines the car's weight class and registration fee using the following schedule: Model Year Registration

Explain about the Character Constants in c language? The character constant is a single alphabet and a single digit or a single special symbol enclosed within a pair of single

M em b e r d e r e f e r e n c i ng o p e r a t o r s: T h e s e op e r a t o r s w i l l b e d i s c u s s e d l a t