-
Recent Posts
Recent Comments
satyam sharma on Pointer Arithmetic on Add… Archives
Category
Monthly Archives: April 2016
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