Re: A question on variable defination
- From: pete <pfiland@xxxxxxxxxxxxxx>
- Date: Fri, 31 Mar 2006 18:28:39 GMT
sunnylele wrote:
Hi, all,
a question on the following defination:
an external function is defined as:
nmriopen(char *const filename, const int np1, const float step1,
const int np2, const float step2)
what's the difference if it is defined as:
nmriopen(char filename, int np1, float step1,
int np2, float step2)
and what if use "int *const np1" instead of "const int np1"?
const qualified arguments
don't mean anything to the function caller.
const qualified arguments
only affect the way that the function definition must be written.
--
pete
.
- References:
- A question on variable defination
- From: sunnylele
- A question on variable defination
- Prev by Date: Re: Some doubts on variable-length array
- Next by Date: Re: size in kbytes?
- Previous by thread: A question on variable defination
- Next by thread: Re: A question on variable defination
- Index(es):
Relevant Pages
|