There is no excerpt because this is a protected post.Read More
C++ programming support generic function and generic classes. Generic function are——> template function.Generic classes are———-> Template Classes. Generic classes: C++ says that you can use same class for multiple data-types but at a time only one data-type but you can write any type of data it is called generic classes i.e Template classes Here, same […]Read More
What is Class? A class is like a blueprint for an object. It is a user defined data type, which holds its own data members and member functions, which can be accessed and used by creating an instance of that class. What is Constructor? A constructor is a member function of a class which initializes […]Read More
void fun(int A[],int n){int i;for(i=0;i<n;i++) { printf("%d",A[i]); }}int main(){int A[5]={2,3,4,5,6};//function callfun(A,5);} Note: we are not passing value of an array to func(). we are actually passing a address of an array. void fun (int *A , int n) ORvoid fun(int A[],int n)-> Both are pointer to an arrayRead More
Q) What is functions ?-> Functions is a piece of code which perform a specific task. Parameter Passing:-(a) pass by value (both in c/c++) (b) pass by address (both in c/c++) (c) pass by reference ( in c++ only available) Note: Grouping of data is structure but Grouping of instruction is a function. Parameter Passing […]Read More
First of all we should know what is program. -> A program is a set of instruction which perform operation on data. so, without data instruction cannot be performed that’s why data is important part of program. -> The way that we organised the data in main-memory i.e the data structure during execution time of […]Read More











