176985602337900

Find freelancers. Lose those costly delays.

With 1.7 million freelancers, we'll match you with the perfect talent.

or, Register with Elance »

Four small C programs
Sign in to Add to Watch List

IT & Programming > Other IT & Programming

View Change History

The client has made the following changes to the job.

Description
Date

Job awarded.

Jan 16, 2012
Close

Job Description

  |  Change History >>

Updated

Close
  • Posted: Sat, Jan 14, 2012
  • Time Left: Closed
  • Location: Anywhere
  • Client prefers freelancers from:
    Anywhere

    You are still able to submit a proposal for this job.

    The client prefers freelancers from
    a different location.

    You're still able to submit a proposal for this job, regardless of your location.
  • Start: Immediately
  • Budget: $40 - $75
  • Fixed Price Job
  • Elance Escrow Protection
  • W9 Not Required
Sign in to view client's details

C file being tested: test.c

#include <stdio.h>
int sum=0, i=1;
int main()
{
char str1[]="ABC";
char str2[]={'A','B','C','\0'};
char str3[]={65,66,67,0};
printf("str1: %s\nstr2: %s\nstr3: %s",str1,str2,str3);
loop:
sum+=i*i;
i++;
if(i<=4)
goto loop;
printf("\nSum of the 4 first square numbers: %d", sum);
}

1) Implement a program that receives a file with a program in C language, and in the case of "goto" being used, prints an error indicating the line number and content of own line, where the first error occurs. Do not worry at this point with false positives due to the existence of "goto" within strings, comments, or even function names or variables.

Run example:
C:\>proga test.c
# Quality error: Use of goto (line 16)
goto loop;


2) Implement a program that receives a file with the C language program, and checks if it uses global variables, and prints an error in this case the number of the line and the contents of the line Itself, where the first error occurs. Do no...

Sign in or Register to see more

Desired Skills
C
Job ID: 28083288
 
Proposals
Avg $ | High $ | Low $ — Show Pricing
  • Submit Date (Latest)

BAI XING      
BAI XING's identity has been verified.  Learn More
 China
Winner
Hi-Tech Green software Inc is an authorized software development company well known to home and abroad and operating out of Changchun city of jilin...
7
  |  
 0.0   |  $0 Earnings   |  0 Jobs
Bid ID: 28086285  |  Submitted: Jan 14, 2012 17:14 ET 
Delivery
Within 3 days
$50.00

 Australia  |  
Tran Anh Duc is a degree-holding professional specializing in web application and software development using latest technologies. He has been...
2
  |  
 0.0   |  $0 Earnings   |  0 Jobs
Bid ID: 28083620  |  Submitted: Jan 14, 2012 12:28 ET 
Proposal SEALED

 Poland  |  
Hello! My name is Demetry. I am 5+ years C/C++ programmer with a deep knowledge of the API, STL, boost, ATL, COM, OLE, System programming,...
1
  |  
 0.0   |  Private   |  0 Jobs
Bid ID: 28083426  |  Submitted: Jan 14, 2012 12:10 ET 
Proposal SEALED
Elance is now an Upwork company.
Upwork is the choise of 4M+ clients. Get started working on Upwork today.
Are you ready to post a job like this one?
Post a Similar Job »