PdfPrep.com

What happens when the assignment statement structA.assign(structB) is executed?

You have two structs, Struct A and Struct B. Struct A contains an attribute called att1 of type MYDOMAIN1, based on SVR_INT64. Struct B contains an attribute called att1 of type MYDOMAIN2, based on SVR_STRING.

What happens when the assignment statement structA.assign(structB) is executed?

A. It auto casts structA’s attribute data types to match that of structB.

B. It auto casts structB’s attribute data types to match that of structA.

C. It will throw a cast error.

D. It will throw error “assign” method cannot have arguments”.

Answer: B

Exit mobile version