Tuesday, November 10, 2020

Array of Pointers using C++


For many other Language Programs related to C++ , Data Structure microprocessor 8086 etc... related to MSBTE, Computer engineering, IT ...visit our BLOG

#include<iostream>
using namespace std;
int MAX=5;
int main()
{
const char *names[MAX]={"mohini","harsh","nitin","sarah","soniya"};
for(int i=0;i<MAX;i++)
{
cout<<"address of names [ "<<i<<" ]  =  ";
cout<<(names+i)<<endl;
}
return 0;
}



Programs:-

For many other Language Programs of microprocessor 8086, C++ , Data Structures visit our  BLOG 

There are programs of Object-Oriented Programing, Operators (logical, arithmetic ,relational,etc) ,exception handling , inheritance ,string operations ,etc


 

No comments:

Post a Comment