Home » Programming & Data Structure » Programming and data structure miscellaneous » Question

Programming and data structure miscellaneous

Programming & Data Structure

  1. Aliasing in the context of programming languages refers to
    1. multiple variables having the same memory location
    2. multiple variables having the same value
    3. multiple variables having the same identifier
    4. multiple uses of the same variables
Correct Option: A

Aliasing describes a situation in which a data location in memory can be accessed through different symbolic names in the program. Thus, modifying the data through one name implicitly modifies the values associated to all aliased names, which may not be expected by the programmer. As a result, aliasing makes it particularly difficult to understand, analyze and optimize programs. Thus, multiple variables having same memory location.



Your comments will be displayed only after manual approval.