Find Jobs
Hire Freelancers

const key word usage in c program

max $5 USD

Cancelado
Publicado hace casi 16 años

max $5 USD

Pagado a la entrega
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
ID del proyecto: 3968091

Información sobre el proyecto

4 propuestas
Proyecto remoto
Activo hace 16 años

¿Buscas ganar dinero?

Beneficios de presentar ofertas en Freelancer

Fija tu plazo y presupuesto
Cobra por tu trabajo
Describe tu propuesta
Es gratis registrarse y presentar ofertas en los trabajos
4 freelancers están ofertando un promedio de $4 USD por este trabajo
Avatar del usuario
See private message.
$4,25 USD en 1 día
5,0 (56 comentarios)
4,2
4,2
Avatar del usuario
See private message.
$4,25 USD en 1 día
4,8 (9 comentarios)
3,3
3,3
Avatar del usuario
See private message.
$3,40 USD en 1 día
5,0 (1 comentario)
1,1
1,1
Avatar del usuario
See private message.
$4,25 USD en 1 día
0,0 (0 comentarios)
0,0
0,0

Sobre este cliente

Bandera de UNITED STATES
Los Angeles, United States
0,5
1
Miembro desde jun 14, 2008

Verificación del cliente

¡Gracias! Te hemos enviado un enlace para reclamar tu crédito gratuito.
Algo salió mal al enviar tu correo electrónico. Por favor, intenta de nuevo.
Usuarios registrados Total de empleos publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Cargando visualización previa
Permiso concedido para Geolocalización.
Tu sesión de acceso ha expirado y has sido desconectado. Por favor, inica sesión nuevamente.