", Call by Reference," Code Answer's
You're definitely familiar with the best coding language Whatever that developers use to develop their projects and they get all their queries like ", Call by Reference," answered properly. Developers are finding an appropriate answer about , Call by Reference, related to the Whatever coding language. By visiting this online portal developers get answers concerning Whatever codes question like , Call by Reference,. Enter your desired code related query in the search bar and get every piece of information about Whatever code related question on , Call by Reference,.
, Call by Reference,
/* function definition to swap the values */
void swap(int *x, int *y) {
int temp;
temp = *x; /* save the value at address x */
*x = *y; /* put y into x */
*y = temp; /* put temp into y */
return;
}
Source: www.tutorialspoint.com
call by reference
//Call By Reference
#include<stdio.h>
void function(int *, int *); //function declaration
int main()
{
int a,b;
printf("Enter first number: ");
scanf("%d",&a);
printf("Enter second number: ");
scanf("%d",&b);
function(&a,&b); //passing the address of both the variables( CALL BY REFERENCE)
}
void function(int *p,int *q) //function defination
{
printf("printing variables from function a=%d b=%d",*p,*q);
}
//code by Dungriyal..
All those coders who are working on the Whatever based application and are stuck on , Call by Reference, can get a collection of related answers to their query. Programmers need to enter their query on , Call by Reference, related to Whatever code and they'll get their ambiguities clear immediately. On our webpage, there are tutorials about , Call by Reference, for the programmers working on Whatever code while coding their module. Coders are also allowed to rectify already present answers of , Call by Reference, while working on the Whatever language code. Developers can add up suggestions if they deem fit any other answer relating to ", Call by Reference,". Visit this developer's friendly online web community, CodeProZone, and get your queries like , Call by Reference, resolved professionally and stay updated to the latest Whatever updates.