Question:Consider the sample code given below and answer the question that follows:
char **foo;
/* Missing code goes here */
for(int i = 0; i < 200; i++)
{
foo[i] = new char[100];
}
Referring to the sample code above, what is the missing line of code? 

A foo = new *char[200]; 

B foo = new char[200]; 

C foo = new char[200]*; 

D foo = new char*[200]; 

E foo = new char[][200]; 

+ Answer
+ Report
Total Preview: 11168

Copyright © 2024. Powered by Intellect Software Ltd