General Discussions

Types of Pointers

Pointer: Pointer is a variable which holds the address of another variable NULL Pointer: A null pointer has a value reserved for indicating that the pointer does not refer to a valid object. It is pointer initialized to NULL value Void Pointer: are pointers pointing to data of no specific data type. The compiler will… Continue reading Types of Pointers

General Discussions

Pointers: Advantages and Disadvantages

Pointer Advantages: Support dynamic memory allocation Faster access of data We can access byte or word locations and the CPU registers directly The data in one function can be modified by other function by passing the address More than one value can be returned from a function through parameters using  pointers Mainly useful while processing… Continue reading Pointers: Advantages and Disadvantages

algorithms

Pointer and Types – C

This note covers various types of pointers to be aware of and a few notations used with pointers. Types of Pointers Pointer: Pointer is a variable which holds the address of another variable NULL Pointer: A null pointer has a value reserved for indicating that the pointer does not refer to a valid object. It… Continue reading Pointer and Types – C

General Discussions

C Pointers and Major Types

Pointer: Pointer is a variable which holds the address of another variable. NULL Pointer: A null pointer has a value reserved for indicating that the pointer does not refer to a valid object. It is a pointer initialized to NULL value. Void Pointer: Are pointers pointing to data of no specific data type. The compiler… Continue reading C Pointers and Major Types

General Discussions

Understanding Various Call by Mechanisms – Structures and Functions

The medium picked to understand the said is by the following: Passing the structure members to the function by call by value or call by reference Passing structures to functions using pass by value Passing structures to functions using pass by reference 1. Demonstrating call by value and reference when a function is passed with… Continue reading Understanding Various Call by Mechanisms – Structures and Functions

General Discussions

Pointers and Conventions (C)

This note covers various types of pointers to be aware of and a few notations used with pointers. Types of Pointers Pointer: Pointer is a variable which holds the address of another variable NULL Pointer: A null pointer has a value reserved for indicating that the pointer does not refer to a valid object. It… Continue reading Pointers and Conventions (C)