Showing posts with label programming language class in ahmedabad. Show all posts
Showing posts with label programming language class in ahmedabad. Show all posts

Monday, February 10, 2020

What is the difference between NULL and Void Pointer? tccicomputercoaching.com

A null pointer is basically a null value assigned to a pointer of any data type whereas a void pointer is a data type which remains void as long as an address of a data type is not assigned to it.

The data type of the pointer is nothing but the type of data stored at the memory location where the pointer is pointed. When you are not sure about the type of data that is going to store at a particular memory location, you need to create the void pointer.



Null pointer does not contain a reference of any variable/value. Hence we may state that it has a NULL as its value making it a null pointer.

void pointer is always of type void *

Mainly such pointers are used for dynamic memory allocations (using malloc(), calloc() and realloc() functions) , where memory block reserved is pointer to by a void pointer and as the pointer value is returned it has to be explicitly type casted to a particular desired type.

Student of IT Field can update their Programming knowledge at TCCI.

For more information about TCCI,.

Call us @ 9825618292

Visit us @ www.tccicomputercoaching.com

Friday, January 25, 2019

Learn Object Oriented Concepts at TCCI - tccicomputercoaching.com

In Beginning there is Procedure Programming , in which programme is divided into the set of functions.

So, we need the much of variables and these functions have to operate these data. This type of programming is very simple. But as your programme grows, bunch of these functions grow more n more. Numbers of lines of code have to copy and paste. To make change in one function need several changes into the other functions.



So, to resolve this problem Object Oriented Programming came into exist.

In Object Oriented Programming we combine the group of related variables and functions into unit. This unit is called an Object. That data/variable is called property and functions called Method.

For example, car has properties like colour, model , price etc. and Methods are start() and Stop() etc.

OOPS has main for pillars like Encapsulation, polymorphism, Abstraction and Inheritance.

To learn more about Object Oriented Concepts in detail at TCCI Computer Coaching

Call us @ 9825618292

Visit us@ http://tccicomputercoaching.com/