שאלה ב C

22wings

New member
שאלה ב C

איך אני הופך את השורה הבאה לאותו דבר רק במקום new מכניס malloc? struct table... table* first[100 first=new table; <- thanks
 

eyalbd

New member
אפשר כך

C++ with new =========== StructType* variable = new StructType; C/C++ with malloc =============== StructType* variable = (StructType*) malloc( sizeof (StructType) );​
 
למעלה