Completed

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

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?

Skills: .NET, C Programming, Software Architecture

See more: types of compilation errors, compilation error c++, compiler warnings, runtime error example in c, compiler error example, compile time error in c programming, runtime error example c++, linking error in c, what to expect at a second interview, c# code review, c code, c code to write excel rows from a nested array, c code to retrive, c code se, c code review, c code development for linux, netbeans java code bubble sort, calculate amount given loan code, php code custom sort order joomla articles, mips code input sort output array integers

About the Employer:
( 3 reviews ) houston, United States

Project ID: #16655251

Awarded to:

fermatliu

A proposal has not yet been provided

$10 USD in 1 day
(1 Review)
0.0

10 freelancers are bidding on average $22 for this job

it2051229

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 in 1 day
(686 Reviews)
7.2
$30 USD in 1 day
(216 Reviews)
6.4
$30 USD in 1 day
(22 Reviews)
4.2
kalyanprakash4

please discuss ....................................................................................................................................................

$25 USD in 1 day
(13 Reviews)
3.8
rcaisse

It doesn't compile on my Linux machine either. Send me a private message to discuss and I can help. Thanks.

$20 USD in 1 day
(3 Reviews)
2.5
volkerb

$ 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 in 1 day
(1 Review)
2.3
$23 USD in 1 day
(2 Reviews)
1.8
ahmedsaad3698

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 More

$15 USD in 1 day
(0 Reviews)
0.0
avaiyahardik

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 in 1 day
(1 Review)
0.0