⟩ What is C strings syntax?
Strings are arrays of chars. String literals are words surrounded by double quotation marks.
"This is a static string"
To declare a string of 49 letters, you would want to say:
char string[50];
Strings are arrays of chars. String literals are words surrounded by double quotation marks.
"This is a static string"
To declare a string of 49 letters, you would want to say:
char string[50];
A const object of a class can call non-const member function of the class. a. True b. False
Const member function does not allow to modify/alter value of any data member of the class. a. True b. False
Can we alter/modify the values of data members of a class inside const member function? a. Yes b. No.
Can member functions of one class be friend functions of another class? a. Yes b. No
A function can be declared as friend maximum only in two classes. a. True b. False
A friend function does not have this pointer associated with it. a. True b. False
Default values for a function are need to be specified from left to right only. a. True b. False
In any ways, Non-member function cannot have access to the private data of the class. a. True b. False
Function overloading can also be achieved if two or more functions differ only in their return types. a. True b. False
If a program uses Inline Function, then the function is expanded inline at ___________. a. Compile time b. Run time c. Both a and b d. None of these