Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Explain your answers for the following questions. The array char mystring[100] c

ID: 3686875 • Letter: E

Question

Explain your answers for the following questions. The array char mystring[100] can store 99 characters(True/False) In regards to question 1 is it fine to use mystring.size() to determine size of the String(True False) The get() function is used to read one line after the other from a file whereas a getline() used to read one letter after the other from a file(True/False) Class is used to define a datatype and object is an entity of a class(True/False) If the variables of a class have private access then they have to be accessed by the member function of a class. But if the variables of a class have public access then they can be accessed by non-member functions(True/False)

Explanation / Answer

False, char mystring[n] means it can hold n characters False, strlen(mystring) will be used to find the length/size of the string False, getline() is used to read one line after the other from a file. True, Class is used to define a datatype and object is an entity of a class True, If the variable of a class have private access then they have to be accessed by the member function of a class. But if the variables of a class have public access then they can be accessed by non-member functions

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote