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
Ask queCreate an object oriented application with C# that computes the area of a rectangle, and the area and the volume of a cuboid. Based on the inheritance concept, create a bas

#Write a program to find the area under the curve y = f(x) between x = a and x = b, integrate y = f(x) between the limits of a and b. The area under a curve between two points can

Define the Conditional Operator in c language? The Simple conditional operator can be carried out with the conditional operators (? And :). An expression that makes use of the

Write a Program that illustrate creation of a data file? Here is a program to generate a Fibonacci series and write it into a Data file. # include main() { FILE *fpt;

Write algorithms to implement the insertion and deletion operations.

A: They are following: Const: point out that memory once initialized, must not be modify through a program. Volatile: denote that value in the memory location can be modified

Networking program development. 1.ARP protocol. 2.Switching HUB. 3.wireshark. 4.winpcap library. 5.C++ & MFC. 6.LAN evironment through switch and HUB(static ARP t

Create an applet that bounces a blue ball inside an applet using Thread. The ball (diameter is 10) will start at position (0,0). When the ball hits the edge of the applet, the ba

In the Byteland country a string "s" is said to super ascii string if and only if count of each charecter in the string is equal to its ascci value in the byteland country ascii co

#Write a program to find the area under the curve y = f(x) between x = a and x = b, integrate y = f(x) between the limits of a and b.   #include float start_poi