Computer Science - Object Oriented Programming Using C++ - Discussion
Discussion Forum : Object Oriented Programming Using C++ - Section 7 (Q.No. 17)
17.
Assume that your version of C++ can recognize only the first 8 characters of an identifier name, through identifier names may be arbitrarily long. Which of the following identifier names is not distinct:
Discussion:
2 comments Page 1 of 1.
Ayesha Tabasum... said:
5 years ago
@All.
[A]. list, list2
//within 8 character two different well defined identifier names.
[B]. address, Address
//within 8 character two different well-defined identifier names.
[C]. identifier_l, identifier_2
// not well defined 2 identifiers have same name compilation error occurred within first 8 character range.
[D]. answer, ANSWER
// within 8 characters two different well-defined identifier names.
So Answer is C.
[A]. list, list2
//within 8 character two different well defined identifier names.
[B]. address, Address
//within 8 character two different well-defined identifier names.
[C]. identifier_l, identifier_2
// not well defined 2 identifiers have same name compilation error occurred within first 8 character range.
[D]. answer, ANSWER
// within 8 characters two different well-defined identifier names.
So Answer is C.
Abhinav said:
7 years ago
Explain how?
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers