-
Recent Posts
Recent Comments
satyam sharma on Pointer Arithmetic on Add… Archives
Category
Category Archives: AdvC
Pointer To Pointer
1. Introduction We know that pointers are the special variables which can hold the address of the other normal variables. Pointers too have the memory allocated. Number of bytes allocated for the pointer variables depends on the size … Continue reading
Posted in Pointer To Pointer, Pointers
Leave a comment
Problems-Basics
4-Problem What is the output of the following code sample? For Solution, see under the solutions category. 3-Problem What is the output of the following code sample? For Solution, see under the solutions category. 2-Problem What is the output of … Continue reading
Posted in Basic
Leave a comment
Solutions-Basics
4-Problem Output: Hi Why? In line no.5, inside the ‘if’ condition i.e if (x = 5) the operator used is assignment not the comparison. The intention of the condition is to compare two values but due to typo, instead of … Continue reading
Posted in Basic
Leave a comment
Pointer Arithmetic on Subtraction
Principle #2: Pointer arithmetic on Subtraction Note: Before reading this article, read Pointer Arithmetic on Addition Below series of examples gives a brief note on how we can perform Pointer arithmetic on Subtraction. Example #1: consider the array definition along … Continue reading
Pointer Arithmetic on Addition
1. Introduction Pointer arithmetic is a good platform to understand the working of pointers and also, if one wants to master ‘C’ then this will the topic to focus more. Pointer arithmetic provides the relationship between the Arrays and the … Continue reading
Posted in Pointer Arithmetic on Addition
1 Comment
Pointer Variables
Pointer Variables In the pointer operators topic, we came to know how to get the address as well as how to print the value present at that address through the pointers concept by the application of referencing and dereferencing operators. … Continue reading
Posted in Bit-fields Structure, Pointer variable
Leave a comment
Operators
In this topic we will study, how to get the address of the variable and also how to fetch the value present at that address by the application of the pointer operators. Example #1: Let us take definition of the … Continue reading
Posted in Operators
Leave a comment
Pointers-Sharp Knives
Introduction “A pointer in ‘C’ language is a special variable which contains the address of the other variable”. C is a very powerful language because of the pointers available in it, which is one of the unique feature supplied by the C … Continue reading
Posted in Introduction
Leave a comment