+ 1

Can anyone explain me about this c language code.

Void main{ Char arr[20]="hello world" Function(arr); } Void function(char array[]){ } How can a array in function can store a arr address and access his actual value??

19th Jun 2019, 12:11 PM
Gaurav Rawat
Gaurav Rawat - avatar
1 Réponse
+ 2
The function must receive the variable reference in its parameters, not the value. Use the variable address
19th Jun 2019, 12:18 PM
Pete Cowling
Pete Cowling - avatar