@anshumantiwari
Student
Nothing here yet.
Nothing here yet.
Oct 15, 2021 · 1 min read · Like pointers in C ( *int , *char ) we can use pointers to a function . Here's a sample of Function Pointer :: #include "iostream" void Sample(){ std::cout << " This is sample function call ." << std::endl; }; int main(){ auto function = Samp...
Join discussionOct 5, 2021 · 1 min read · C++ allows us to use inline functions like we use in Python . Let's see the expression of Lambda Functions : auto lambdas = [ capture clause ] (parameters) -> return-type { definition of method ... } Implementation of Simple Lambda Function:...
AAlok commentedOct 4, 2021 · 1 min read · Let's know what is Singletons : Sometimes we need to have only one instance of our class for example a single DB connection shared by multiple objects as creating a separate DB connection for every object may be costly. Similarly, there can be a sing...
AAlok commentedOct 3, 2021 · 2 min read · Let's first have an idea about what is Generics . A generic function is a function that is declared with type parameters. When called, actual types are used instead of the type parameters. In C++ Generics are implemented using template . Generics ca...
Join discussion