Login


Lost your password?

Don't have an account ?
Register (It's FREE) ×
  


Shop
CPP All : Functions Reference Passing/Returning
Concept Learning Code Sheets

Check if string is a palindrome using a function. #1395

Check if a character array or c-style string is same (Palindrome) when reversed using an independent function.

Call by reference demonstration #2647

A simple call by reference demonstration by adding something in the original value itself.

Function Call by Reference and Call by Value comparison #2680

A program that uses both call by reference and call by value in the same program to compare it for better understanding.

Variable swapping using function call by reference #2685

Swapping (Interchange) of two variable values using the call by reference technique of function arguments.

Global and Local Function Declaration #2689

Understanding global and local function declaration using a function declaration above main and another inside the main routine.

Passing null terminated string to function using array notation #2701

Program to pass by reference character array as a null terminated string to a function using the array notation using [ ].

Passing null terminated string to function using pointer notation #2706

Program to pass by reference character array as a null terminated string to a function using the pointer notation using *.

Passing integer array to a function for linear search #2733

Program to pass an integer array, length of array and the member to be found to a function and return the position of the member found.

Changing multiple values of integer array passed to a function #2737

A program to pass integer array to a function and change many values in it based on a condition. Then reading such values in the calling function.

Function returning by reference #2749

A program to demonstrate returning of a reference data type from the function.

Using function return by reference to modify a global array #2754

A program that neatly modifies a global array by using the function return by reference technique.

Solved Problems

output writing, pass by ref/pass by value #2652

Write the output of the following code piece.

Char array passing to function #2656

Write a function alpha_count() where a character array is passed as reference

Output writing – passing string as char pointer #2659

Write output of the following code.

Array to array data #2697

Write output of the following code and explain its working.

Output writing function within function with array passing #2746

Dry run the following program carefully and write the output.

Correcting error in function call by reference #2742

Program given below has some incorrectly written function call, correct the m

Setting bigger of two values using function returning reference #2757

Write a c++ program using function returning the reference which finds the b

First and last digit of an integer in a function and putting at reference location #3018

Write a c++ program using a function with the following prototype –


Code Sheets:11  Solved Problems:8 
Back