Posts
 
Reputation
Joined
Last Seen
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
1 Commented Post
0 Endorsements
Ranked #72.9K
Ranked #4K
~391 People Reached
Favorite Forums
Favorite Tags

2 Posted Topics

Member Avatar for mnpatterson08

[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 …

Member Avatar for mnpatterson08
0
110
Member Avatar for Xufyan

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 …

Member Avatar for MageBane
0
281

The End.