Horje
calling by reference c++ Code Example
calling by reference c++
void fun2(int& a) 
{
    a = 5;
}

int main()
{
    int b = 10;
    fun2(b); 

    // now b = 5;
    return 0;
}
calling by reference c++
void fun(int *a)
{
   *a = 10;
}




Cpp

Related
Iterator in c++ Code Example Iterator in c++ Code Example
intersection between vector c++ Code Example intersection between vector c++ Code Example
c++ count vector elements Code Example c++ count vector elements Code Example
transformer in nlp Code Example transformer in nlp Code Example
circular array Code Example circular array Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10