Find Jobs
Hire Freelancers

compile problem with linear list sample

$10-30 USD

Completed
Posted over 9 years ago

$10-30 USD

Paid on delivery
for learning c i have copied a simple program about linear lists. but i am getting in both dev c++ and codeblocks compile error at line malloc(sizeof(struct angestellt))) == NULL) { fprintf(stderr, "no memory available" "fuer anfang\n"); i am wondering a lot about this, because i have the sample from educational book? file is attached
Project ID: 6576617

About the project

3 proposals
Remote project
Active 10 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
It seems like that they have forgotten to make a cast. ( anfang = (struct angestellt *) malloc(sizeof(struct angestellt)) ) == NULL etc. Maybe their compiler had made a cast automatically, but mine (nor G++ or GCC either) does not automatically cast malloc result from void * to desired pointer.
$10 USD in 0 day
5.0 (1 review)
1.1
1.1
3 freelancers are bidding on average $15 USD for this job
User Avatar
Hi, I am a professional programmer and I can fix this your code i less than 30 mins. Ready to start now. Please show me your error description. Thanks
$20 USD in 9 days
5.0 (5 reviews)
3.3
3.3
User Avatar
HI, i know the issue you are facing. I can help you understand whats the issue and how to resolve it. Please ping me so that i can help you on this.
$15 USD in 1 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of AUSTRIA
Steyr Gleink, Austria
5.0
219
Payment method verified
Member since Jul 3, 2013

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.