Pointer

Difference between Reference and Pointer in C++

Here you will learn about difference between reference and pointer in C++. Reference: Reference contains address of a variable. It can be called as alternative name of a variable. Example: Pointer: Pointer also contains address of a variable. Example: Both reference and pointer are used to point to address of a variable but they are different in many …

Difference between Reference and Pointer in C++ Read More »

C/C++ Program to Read Infinite Numbers and Arrange Them in Ascending Order

In this program we are reading infinite numbers and then arranging them in ascending order. Here infinite means, the program should read numbers until a particular number is entered to terminate the reading process. In our case we are using -1 to stop the reading process. As we already don’t know how many numbers will …

C/C++ Program to Read Infinite Numbers and Arrange Them in Ascending Order Read More »