write a piece of c++ code which allocate memory to the 50
object of type CObj

Answer Posted / santhosh k

#include<iostream.h>
class CObj
{
};
int main()
{
CObj **obj=new CObj *[50];
for(i=0;i<50;i++)
{
obj[i]=new Cobj[10];
}
}

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we use stl in coding interviews?

1290


a program using one dimensional array that searches a number if it is found on the list of given input numbers given by the user and locate its exact location in the list.

1385


sir please send me bpcl previous question papers

1963


How connect plc and pc through software

1928


write a program to convert a decimal number in to its equivalent binary number?

2086






What does stl mean in slang?

656


What are the components of stl?

631


In what scenario does the Logical file and Physical file being used?

2330


Do you like to Submit Questions in Bulk under Same Category?? Then use our Bulk ListerDo you like to Submit Questions in Bulk under Same Category?? Then use our Bulk Lister

1668


How do you convert stl to steps?

639


Define stl.

784


What are the various types of stl containers?

740


How does an stl file work?

658


Explain stl.

909


Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.

1980