-1 Reputation Points
- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
0% Quality Score
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
2 Posted Topics
Re: Arrays???
[QUOTE=jonsca;1263644]Not a bad first effort but there are a few things: [icode] main() [/icode] [I]always[/I] returns an int, and is not void. You need to specify that you want [icode] &arayvalues[n] [/icode] on line #10. Your second loop should be to 10 unless you want to add only the first …
try it n dear teamp stands fr temporary not for temperature int main(void) { int temp[2]; int i,max; for (i=0;i<2;i++) { printf ("Enter value in an array %d:",i); scanf ("%d",&temp[i]); } max=temp[0]; for (i=1;i<2;i++) { if (temp[i]>max) max=temp[i] } printf("max no in array=%d",max); getche (); } but this is not …
The End.
harsh singh