Færdiggjort

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?

Evner: .NET, C programmering, Software Arkitektur

Se mere: 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

Om arbejdsgiveren:
( 3 bedømmelser ) houston, United States

Projekt ID: #16655251

Tildelt til:

fermatliu

A proposal has not yet been provided

$10 USD på 1 dag
(1 bedømmelse)
0.0

10 freelancere byder i gennemsnit $22 på dette 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 på 1 dag
(686 bedømmelser)
7.2
$30 USD på 1 dag
(216 bedømmelser)
6.4
$30 USD på 1 dag
(22 bedømmelser)
4.2
kalyanprakash4

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

$25 USD på 1 dag
(13 bedømmelser)
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 på 1 dag
(3 bedømmelser)
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 på 1 dag
(1 bedømmelse)
2.3
$23 USD på 1 dag
(2 bedømmelser)
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 Flere

$15 USD på 1 dag
(0 bedømmelser)
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 på 1 dag
(1 bedømmelse)
0.0