Skip to main content

C++
0 followers
1 question
26 posts

Aditya MangaloreLetsUpgrade Elite Team | 🎖️FL
LETSUPGRADE ELITE TEAM MEMBER/ LETSUPGRADE STUDENT AMBASSADOR / ML ENTHUSIAST

DYNAMIC MEMORY ALLOCATION

1. malloc()

Declaration: void *malloc(size_t size); // ptr=(datatpe*)malloc(sizeof(datatype)); This function is used to allocate memory dynamically. The argument size specifies the number of bytes to be allocated. On success, malloc() returns a pointer to the first byte of allocated memory.... (More)

What are Templates ???

Templates are one of the most c++ ‘s most sophisticated and high powered feature. Using templates, it is possible to create generic functions and classes. Generic programming is a technique where generic types are used as parameters in algorithms so... (More)

Constructors In Cpp

A constructor is a special function in c++ that is used to initialize class data members. The constructor name is the same as that of the class name.

Constructors don’t return value. Constructor is invoked automatically when the object of... (More)

Polymorphism in c++

It is one of the features of the Object-Oriented Programming System. Polymorphism means more than one function with the same name, but different working. It means having many forms. In C++ we have two types of polymorphism:

1) Compile time... (More)