Question: Consider the C code snippet. int main() { char msg[] = Hello World; char p = msg; processArr (??); } void processArr (char arr[]) {
![Consider the C code snippet. int main() { char msg[] =](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66fa690e53211_92566fa690ddcf1e.jpg)
Consider the C code snippet. int main() { char msg[] = "Hello World"; char p = msg; processArr (??); } void processArr (char arr[]) { arr[@] = 'A'; } Which of the following could be a valid function calls in place of processArr( ?? ) You will lose mark for wrong choices. Select one or more: o processArr ( *(msg+3)) o processArr ( *(p+3)) processArr ( &msg[2]) O processArr ( *p + 2) processArr (p) o processArr ( &(p+3) )
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
