aap.shweta
BAN USER
Questions (1)
Comments (3)
Reputation 0
Page:
1
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
0
of 0 vote
int main(int argc, char *argv[])
{
char ** mychar = new char *[5];
for(int i=0; i<5; i++)
{
mychar[i] = new char[5];
memset(mychar[i],'0',5);
}
for(int j=0; j<5; j++)
{
cout<<mychar[j]<<endl;
}
system("PAUSE");
return EXIT_SUCCESS;
}
Comment hidden because of low score. Click to expand.
0
of 0 vote
But what if const is not initialized in member initializes list? And I want to initialize it. How to do that? is there any way? can we use const_cast operator for initializing it?
- aap.shweta June 13, 2014Page:
1
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.
unordered_set
- aap.shweta July 10, 2014