Using new is type safe as _______________________

Using new is type safe as _______________________ Correct Answer It doesn’t require to be specified with type of data

The new is type safe because we don’t have to specify the type of data that have to be allocated with memory. We can directly use it with data name. Name of the data doesn’t matter though for type of memory allocation though.

Related Questions

Consider the following grammar (that admits a series of declarations, followed by expressions) and the associated syntax directed translation (SDT) actions, given as pseudo-code: P → D* E* D → int ID {record that ID.lexeme is of type int} D → bool ID { record that ID.lexeme is of type bool} E → E1 + E2 {check that E1.type = E2.type = int; set E.type := int} E → !E1 {check that E1.type = bool; set E.type := bool} E → ID {set E.type := int} With respect to the above grammar; which one of the following choices is correct?
In the question below, are given a statement followed by three courses of actions numbered I, II and III. On the basis of the information given, you have to assume everything in the statement to be true, and then decide which of the following suggested courses of actions logically follow(s) for pursuing. Statement: Starting October, all new cars will have pedestrian safety features, including new design of the bonnet, to reduce impact on pedestrians during accidents. Advanced safety features are needed in all vehicles in India as vehicle safety cannot be confined to luxury vehicles only. Around 1.5 lakh people are killed in road accidents every year in the country, nearly 60% of them are pedestrians.  Courses of action: I. The government has set a target to reduce the number of road deaths by half in the next two years. The ministry of road transport and highways has been issuing new safety standards for the automobiles along with eliminating the black spots on national highways.  II. By next month, all new cars will have pedestrian safety feature, including new design of the bonnet, to reduce impact on pedestrians during accidents.  III. Ministry of road transport and Highways is planning to implement all safety features in vehicles with active support of vehicle manufacturers. Electronic stability control (ESC) and autonomous emergency braking (AEB) will be incorporated in new vehicles by 2022.