Showing posts with label cpp. Show all posts
Showing posts with label cpp. Show all posts

C++ Structure


C++ Structure
C++ Structure Array is a collection of variables of same data types as to store roll numbers of 10 students, better to use array of size 10 instead of using …
Read more »

Ifstream C++ How to open text file and read data


Ifstream C++ How to open text file and read data
Ifstream C++ Ifstream stand for input file stream used to read data from file. There are simple five steps to read data from text file as below Step 1: Include…
Read more »

Ofstream C++ How to open and write data in text file


Ofstream C++ How to open and write data in text file
What are Files in C++ Combination of characters, words, sentences and paragraphs is called file Types of File Primarily there are two types of files i.e …
Read more »

Array of pointers in C/C++


Array of pointers in C/C++
Array of pointers Like array of variables, we can declare array of pointers in c where each pointer further points to another array. Code is given below int …
Read more »

Difference between pointer and array


Difference between pointer and array
C++ const pointer When we declare and initialize a variable x with 10, memory is reserved for x with name x. if we display x as  cout << x;  The value 10…
Read more »

Pointers and call by reference in C++


Pointers and call by reference in C++
Pointers and Call by Reference The mechanism behind calling a function is that, when we call a function we pass it some variables. The values of these variab…
Read more »

What is Pointer in C++


What is Pointer in C++
What is RAM To understand pointer, you should know about the primary memory ( RAM ). RAM stand for Random Access Memory means that any memory location of RAM c…
Read more »