Re: Malloc in C

Ashish <[email protected]> Mon, 8 Nov 2004 20:41:50 -0800 (PST)
Newsgroups gmane.comp.programming.cppug
Message-ID <[email protected]>

Do you want to solve your class room problems !!!!

--- "Antonio (Tony) Ferrari" <[email protected]>
wrote:

> 
> 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.)
> 
> 
> 
> 
> 


=====
Ashish Buldeo
Ph: +91-9845690688

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 





------------------------ 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/