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

What is the use of stl?

0 Answers  


Explain stl.

0 Answers  


How Find, Replace and Go To commands ca be used to substitute one character string for another? Explain with the heIp of an example.

1 Answers  


differentiate between private, public and protected data members of the class using example.

1 Answers  


How connect plc and pc through software

0 Answers  


Find the error in the following program struct point {struct point *next; int data; } x; main() {int...data; } x; main() {int i; for(x=p;x!=0;) x=x->next,x++; freelist(x); } freelist(x) {free(x); return }

1 Answers   Sun Microsystems,


What is the STL?

2 Answers   Epson, HP,


What does stl mean in slang?

0 Answers  


why does the execution of a c++ program start with main()???

11 Answers  


How do I convert a stl file?

0 Answers  


Write a program in C/C++ to implement reader- writer problem

1 Answers   Wipro,


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

0 Answers  


Categories