How to pass an array to founction
Domenico Formenton <[email protected]>
| Newsgroups | gmane.comp.hardware.avr.gcc |
|---|---|
| Organization | dfx s.r.l. |
| Message-ID | <[email protected]> |
Hi,
I would like to pass an array of char to a function and, in the
function, insert some data into the array, so that it can read the data
in the calling function. Something like:
char arr[20];
compute(arr);
....
char c;
c = arr[0]; // Must return 'A'!!!!!
void compute (char a[]) {
a[0] = 'A';
...
...
}
What should I modify it to work as I want?
thank you very much.
Domenico
---
Questa e-mail è priva di virus e malware perché è attiva la protezione avast! Antivirus.
http://www.avast.com
_______________________________________________
AVR-GCC-list mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/avr-gcc-list
dformenton.vcf
(text/x-vcard, 226 B)
begin:vcard fn:Domenico Formenton n:Formenton;Domenico org:dfx adr;dom:;;Via delle due Case, 12;APRILIA;LT;04011 email;internet:[email protected] tel;work:06 92500019 tel;cell:333 7075929 url:www.dfx.it version:2.1 end:vcard