954,500 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

beginner"problem in arrays help me in codes"

undefined
hi,
i m naya.i m student of telecommunicatin engineering.i have a lot problems in "C PROGRAMMING".plz tell me the codes to find max,min values....to print factorial of a number...how copy an array to other.....to print tables of numbers....n how to swaps in array..
plz they all codes should be in arrays...plz help me
in 21 nov i will give exam in my uni. of "ARRAYS IN C"
I SHALL BE VERY TO U.....
BYE

naya
Newbie Poster
2 posts since Nov 2004
Reputation Points: 10
Solved Threads: 0
 

I have a better idea. You prove that you've tried to solve these problems on your own, and we'll help you with any errors. No one is going to do your homework for you.

Narue
Bad Cop
Administrator
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401
 

oh sure !! i can help you out.Here are the codes
1. Finding Maximum and minimum values in a array

# include
# define MAX 10
void main()
{ int a[MAX],i,mini,maxi;
for(i=0;imax)
maxi = a[i];
if(a[i]" to "<" in the code.rest all wil remain as it is .

# include
# define MAX 10
void main()
{ int a[MAX],i,j,temp;
for(i=0;ia[j])
{ temp=a[i];
a[i]=a[j];
a[j]=temp;
}
}
}
printf("The sorted Array is : \n");
for(i=0;i
# include
# define MAX 10
void main()
{ long int a[MAX],fact[MAX],i,j;
int pro;
for(i=0;i

harshchandra
Junior Poster in Training
68 posts since Nov 2004
Reputation Points: 7
Solved Threads: 1
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You