1.

Consider the following code and select the correct option: class student { int marks; public : int* fun() { return &marks; } }; main() { student s; int *ptr=c.fun(); return 0; }

A. This code is good to go
B. This code may result in undesirable conditions
C. This code will generate error
D. This code violates encapsulation
Answer» E.


Discussion

No Comment Found