Find Jobs
Hire Freelancers

const key word usage in c program

max $5 USD

Cancelled
Posted almost 16 years ago

max $5 USD

Paid on delivery
hello My requirement is as follows. I am using a 3d visualization tool vis5d to view my [login to view URL] this i need to call methods of vis5d module to create a .v5d format. to simplyfy iam calling a method in external module. method prototype is: extern int v5dCreate( const char *name, int numtimes, int numvars, int nr, int nc, const int nl[], const char varname[MAXVARS][10], const int timestamp[], const int datestamp[], int compressmode, int projection, const float proj_args[], int vertical, const float vert_args[] ); The seventh argument is const char varname[MAXVARS][10] giving following warning: warning: passing argument 7 of ‘v5dCreate’ from incompatible pointer type Iam calling the method char VarName[MAXVARS][10]={"I"}; v5dCreateSimple( .....,VarName, ... ) . To simplify your understanding see the following eg: #include void InputString(const char emp[1][1]){ printf(" %s",emp[0][0]); } void abc() { char a[1][1]={"Z"}; InputString(a); } int main() { abc(); }//main giving warning: warning: passing argument 1 of ‘InputString’ from incompatible pointer type i used trial and error just put the const before two dimensional [login to view URL] wont give the compiler error but end with segmentation fault. note:it is not giving any warning for single dimension array ## Deliverables 1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) Deliverables must be in ready-to-run condition, as follows? (depending on the nature? of the deliverables): a)? For web sites or? other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment. b) For all others including desktop software or software the buyer intends to distribute: A software? installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request. 3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement). ## Platform Linux, UBUNTU
Project ID: 3968091

About the project

4 proposals
Remote project
Active 16 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
4 freelancers are bidding on average $4 USD for this job
User Avatar
See private message.
$4.25 USD in 1 day
5.0 (56 reviews)
4.2
4.2
User Avatar
See private message.
$4.25 USD in 1 day
4.8 (9 reviews)
3.3
3.3
User Avatar
See private message.
$3.40 USD in 1 day
5.0 (1 review)
1.1
1.1
User Avatar
See private message.
$4.25 USD in 1 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
Los Angeles, United States
0.5
1
Member since Jun 14, 2008

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.