Find Jobs
Hire Freelancers

Given a C code, What sort of error would you expect to see? At what stage of building the program does this error occur?

$10-30 USD

Teljesítve
Kiadva ekkor: körülbelül 6 évvel ezelőtt

$10-30 USD

Teljesítéskor fizetve
Consider the following code: #include <stdio.h> char * Flip_A_Coin(int x) { if (x%2 == 0) return("heads"); else return("tails"); } Assume that this code is stored in a file named coin1.c and compiled as follows: ahoover@video> gcc -o coin1 coin1.c What sort of error would you expect to see? At what stage of building the program does this error occur?
Projektazonosító: 16655251

A projektről

9 ajánlat
Távolról teljesíthető projekt
Aktiválva: 6 évvel ezelőtt

Szeretne pénzt keresni?

A Freelancer oldalán történő árajánlatadás előnyei

Határozzon meg költségvetést és időkeretet
Kapja meg fizetését a munkáért
Vázolja ajánlatát
Ingyen regisztrálhat és adhat árajánlatot munkákra
Neki odaítélve:
Felhasználó avatár
A proposal has not yet been provided
$10 USD 1 napon belül
3,0 (2 értékelés)
0,6
0,6
9 szabadúszó adott átlagosan $21 USD összegű árajánlatot erre a munkára
Felhasználó avatár
Hi there, I went through the initial description of the project. I'd like to have further details on the code and the topic of this subject. Let me know if you are interested.
$15 USD 1 napon belül
5,0 (797 értékelés)
7,5
7,5
Felhasználó avatár
It doesn't compile on my Linux machine either. Send me a private message to discuss and I can help. Thanks.
$20 USD 1 napon belül
5,0 (8 értékelés)
3,0
3,0
Felhasználó avatár
$ gcc -o coin1 coin1.c /usr/lib/gcc/x86_64-redhat-linux/7/../../../../lib64/crt1.o: In function `_start': (.text+0x20): undefined reference to `main' collect2: error: ld returned 1 exit status
$25 USD 1 napon belül
5,0 (1 értékelés)
2,3
2,3
Felhasználó avatár
this code will compile correctly and this function will return the address of the first letter of one of the two options depend on the function argument . both of the words will be written in part of NVM memory and or code will deal only with their address and we can read them but the problem will occur if we try in any line of our code to write in those addresses .. I have a big experience in C and work in a lot of project with it . I can give you a professional and readable code which will be easy to but any change on it if you want to add new features
$15 USD 1 napon belül
0,0 (0 értékelés)
0,0
0,0
Felhasználó avatár
Return type is char. And you return string. I hope it will work. Try and see what happen let me know if not work. Relevant Skills and Experience C,C#,PHP
$25 USD 1 napon belül
5,0 (1 értékelés)
0,0
0,0

Az ügyfélről

UNITED STATES zászlója
houston, United States
5,0
10
Fizetési mód hitelesítve
Tagság kezdete: aug. 19, 2015

Ügyfél-hitelesítés

Köszönjük! E-mailben elküldtük a linket, melyen átveheti ajándék egyenlegét.
E-mailje elküldése során valami hiba történt. Kérjük, próbálja újra.
Regisztrált Felhasználók Összes Közzétett Munka
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Előnézet betöltése
Hozzáférést adott a helymeghatározáshoz.
Belépési munkamenete lejárt, és kijelentkeztettük. Kérjük, lépjen be újra.