Checkout
checkout
view
Your Cart Your Cart: item(s)
Add to Shopping Cart
$2.19 Instant Download
Computer Science, Numerical Computing
Year 4

Find / resolve c program segmental fault


Need some assistance finding / repairing segmentation fault in program.

The attached program uses a random number generator, orders numbers hi to low, displays hi number, low number and should display mean and median numbers from random list. I run "./random2 1 100 20" to generate 20 numbers between 1 and 100, (./random2 min max number).

My attached program compiles using gcc -Wall -ansi -o random2 Assign2bm.c.

However, when I run "./random2 1 100 20" for example it seg faults after displaying largest number and smallest number without displaying mean and median.

Attachments
Assign2bm.txt  View File

By OTA:  Scott Stransky, MS

OTA Rating:  4.9/5

Your Price:  $2.19  (original value ~$39.90)

What's included:

  • Plain text response
  • Attachment(s):
    • stats.c
$2.19 Download Add to Cart

Add to Shopping Cart
$2.19 Instant Download

Page generated in 0.0232 seconds

About Us ·  Contact Us ·  Samples ·  Solutions ·  Legal Terms and Conditions ·  Privacy Policy

©2008 SolutionLibrary.com

Search for Solutions About Us Samples