Malloc in C

"Antonio (Tony) Ferrari" <[email protected]> Mon, 08 Nov 2004 23:52:59 -0000
Newsgroups gmane.comp.programming.cppug
Message-ID <[email protected]>

Heres a test for the C folks. Use Malloc (allows one to assign 
memory in C) to the following challenge:


Write a program that will ask the user for how many integer numbers 
to enter.  Use long integers for input.  Allocate an array with the 
number of integers the user designated.  Input all of the integers 
from the user.  Sort all of the values.  Print them out to the 
screen in neat columns.  Print the highest number entered, the 
smallest number entered, and the average of the numbers entered at 
the end.  (Note:  You will have to use pointers for this and memory 
allocation.)






------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/EbFolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/cppug/

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/