Computer Science, asked by riddhimotiyani, 1 month ago

write a program to explain the functionality of call by reference mechanism​

Answers

Answered by Snowflakes341
1

Answer:

#include<stdio.h>

void change(int num) {

printf("Before adding value inside function num=%d \n",num);

num=num+100;

printf("After adding value inside function num=%d \n", num);

}

int main() {

int x=100;

printf("Before function call x=%d \n", x);

change(x);//passing value in function

printf("After function call x=%d \n", x);

return 0;

}

Explanation:

mark me as a brainlist :-)

Similar questions