PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Wed Sep 29, 2004 12:12 pm |
|
|
When you have this type of question, you should make a test program,
compile it, and look at the .LST file.
For example, here is a test program for your question.
Compile it and look at the .LST file.
Code: | #include <16F877.H>
#fuses XT, NOWDT, NOPROTECT, BROWNOUT, PUT, NOLVP
#use delay(clock = 4000000)
#use rs232(baud=9600, xmit=PIN_C6, rcv=PIN_C7, ERRORS)
void func1(char *array[])
{
char c;
c = array[0];
}
//------------------------
void func2(char *array)
{
char c;
c = array[0];
}
//==================================
void main()
{
char array[10];
func1(array);
func2(array);
while(1);
} |
|
|