Skip to main content

Posts

Pointer To Pointer in C Program #DOTC_Mdb

Pointer to Pointer in C. Hello Everyone, In Previous blog we discussed about pointers in C. Today we will discuss about Pointer to Pointer in C. Before starting this topic please go through my previous blog as below for your reference. https://dheeraj60.blogspot.com/2020/06/basic-concept-of-pointer-in-c-and-its.html   Let’s Start with Pointers to Pointer As we know now pointer is basically used to find the address of variable. When a pointer holds the address of another pointer then such type of pointer is known as pointer-to-pointer. When we define a pointer to a pointer, the first pointer contains the address of the second pointer, which points to the location that contains the actual value. Syntax for Declaring Pointer to Pointer **p; In Pointer we use to take 1 *, but in pointer to pointer we need to take 2 * to get the address of second pointer and the location that contains the actual value.   Let’s take 1 simple example to understand Pointer to Pointer Progra...

Basic Concept of Pointer in C and it's uses #DOTC_Mdb

Pointers in C.   Hello Everyone, Today we will discuss about Pointer in C program. In Simple word Pointer in C is special type of variables which holds memory address of any variable. Before going to know more about Pointer . Please see my below blog where in archive folder where you will able to find all the previous topics. dheeraj60.blogspot.com Let’s Start with Pointer in C . Pointer is basically used to see the address of variable which we assigned in the program. In other word we can say A pointer is a variable whose value is the address of another variable, i.e., direct address of the memory location. Like any variable or constant, you must declare a pointer before using it to store any variable address. Suppose we declare any variable of int type like int i=20; and I want to see the address of that value then through pointer we can easily see the address of variable i which stored in the memory location with different format. Syntax of Declaring Pointer is : Int *p; ...

GO to Statement in C #DOTC_Mdb

Go to Statement in C. Hi Everyone, Today we will discuss about go to statement in C which is rarely used in Program but sometimes we need to use this to jump statement in C. Before going through this blog please go through my previous C blogs for your reference so that you can easy to understand the program . You will find the blogs in archive folder from below blog:      dheeraj60.blogspot.com Let’s start with go to statement in C. goto statement in C is known as jump statement in C.   Go to statement is used to transfer the program control to a predefined . go to   also be used to break the multiple loops which can't be done by using a single break statement.   Go to statement is rarely used in program because it makes program confusing   and complex as the control of the program difficult to trace, so for testing it’s bit confusing. Defining go to we need to put label name and can use it in program Syntax of go to statement: label:  ...

Multi Dimensional Array(2D and 3D ) in C Program #DOTC_Mdb

Multi Dimensional Array in C. Hi Everyone, Today we will discuss about Multi Dimensional Array in C. In Previous blog we discussed about Array so before going through Multi Dimensional Array please go through my below blog first about one dimensional Array so that it’s easy for you to understand 2D array and 3D arrays.   https://dheeraj60.blogspot.com/2020/06/array-and-its-beneifts-in-c-program.html   Let’s Discuss about Multi Dimensional Array now Creating Array of an Arrays in C is known as Multi-Dimensional Array .Multidimensional Array is of 2D array and 3D array . Two Dimensional (2D) array also known as Matrix . Matrix can be represented as table with rows and columns.   Let’s understand the syntax of 2D array . Int x[3][4]; In Previous blog we already know about 1D array and it’s declaration here in 2D array we declare the array in same way with another [] assuming one for rows and another for column . Here, x is a two-dimensional (2d) array. The array ...

Array and it's Beneifts in C Program #DOTC_Mdb

Array in C  Program.   Hi Everyone, Today we will discuss about Array in C . Array is very important in Program so before starting you need to be very clear about loops concept in C as in array nested for loops used mostly. Please follow my below blog for loop concepts for your reference. https://dheeraj60.blogspot.com/2020/06/while-and-do-while-loop-lop-in-c.html https://dheeraj60.blogspot.com/2020/06/nested-for-loop-with-simple-pattern.html https://dheeraj60.blogspot.com/2020/06/loop-concept-in-c-with-examples-dotcmdb.html   Let’s Start with Array . An array is a variable that can store multiple values for any data type like int , float etc ,   in other word int array holds the elements of int types while a float array holds the elements of float types. Arrays always start with 0 . We can access elements of an array by indices. Array has 0 has the first index not 1 as array always start with 0 . Suppose we declare any array of int data type 20 it means tha...