Tag Archives | C++

Beginner’s guide to Linked Lists

Linked list is a type of data structure which has two parts – Data part, Next part. The combination of both data part and next part is called a node. The data part stores the data and the next part stores the reference (or the address) to the next node…

Read full story Comments { 0 }

Insertion using functions in C++

The program inserts a number given by the user into an integer array where the location is also given by the user. Insertion is carried out by a separate function…

Read full story Comments { 0 }

Swapping two numbers using functions

This program takes two numbers from the user, swaps them and display them back to the user…

Read full story Comments { 7 }

Assigning grades using functions

This program takes the marks of three subjects from the user and assigns a grade based on the overall marks obtained…

Read full story Comments { 0 }

Finding a number using Binary search in a function

The program finds the number entered by the user from an integer array using a separate function to handle the binary search fragment…

Read full story Comments { 0 }

Adding two numbers using functions

This Program takes two numbers from the user, adds them and displays the sum to the user using a function…

Read full story Comments are closed