Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

Answers were Sorted based on User's Feedback



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

Answer / tara

CObj *obj = new CObj [50];

Is This Answer Correct ?    5 Yes 0 No

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

Answer / 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

More STL Interview Questions

how to use C++?

0 Answers   NIIT,


What is stl in c++ with example?

0 Answers  


wap in c++ which accept a integer array and its size as argument and replaces element having even values with its half and element having odd values with twice its value

1 Answers  


How can you create a bulleted list, numbered list and an outline by using bullets and numbering command. Explain with the help of example.

0 Answers  


What is a list in c++ stl?

0 Answers  


Waht is inheritance

6 Answers  


How is stl different from c++ standard library?

0 Answers  


sir please send me bpcl previous question papers

0 Answers   BPCL Bharat Petroleum,


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

2 Answers  


What is a standard template library (stl)?

0 Answers  


How stl is different from the c++ standard library?

0 Answers  


How does an stl file work?

0 Answers  


Categories