Discover
Questions library
Collections library
Find online teacher
login
Discover
questions library
Find online teacher
login
Popular searches:
if-else
class-diagram
Polymorphism
flowchart
Home
Questions
Questions
Study lists
Kasim Kamal Questions
290 Questions
Instead we can use strcat and strcpy. However, to use these functions, we must pass an array to hold the resulting string. The array we pass must be large enough to hold the generated string, including the null character at the end. The code we show here, although a common usage pattern, is fraught
C++ programming
2022-07-05
Answers
30
Question
40
Followers
30
0
1
287
Using these operators on similarly defined C-style strings compares the pointer values, not the strings themselves
C++ programming
2022-07-05
Answers
30
Question
40
Followers
30
0
1
212
Comparing two C-style strings is done quite differently from how we compare library strings. When we compare two library strings, we use the normal relational or equality operators
C++ programming
2022-07-05
Answers
30
Question
40
Followers
30
0
1
193
The pointer(s) passed to these routines must point to null-terminated array(s)
C++ programming
2022-07-05
Answers
30
Question
40
Followers
30
0
1
247
We can use the subscript operator on any pointer, as long as that pointer points to an element (or one past the last element) in an array
C++ programming
2022-07-04
Answers
30
Question
40
Followers
30
0
1
231
When we subscript an array, we are really subscripting a pointer to an element in that array
C++ programming
2022-07-04
Answers
30
Question
40
Followers
30
0
1
191
The result of adding an integral value to a pointer is itself a pointer. Assuming the resulting pointer points to an element, we can dereference the resulting pointer
C++ programming
2022-07-04
Answers
30
Question
40
Followers
30
0
1
202
We cannot use the relational operators on pointers to two unrelated objects
C++ programming
2022-07-04
Answers
30
Question
40
Followers
30
0
1
204
We can use the relational operators to compare pointers that point to elements of an array, or one past the last element in that array. For example, we can traverse the elements in arr as follows
C++ programming
2022-07-04
Answers
30
Question
40
Followers
30
0
1
204
The result of adding an integral value to a pointer must be a pointer to an element in the same array, or a pointer just past the end of the array
C++ programming
2022-07-04
Answers
30
Question
40
Followers
30
0
1
223
When we add (or subtract) an integral value to (or from) a pointer, the result is a new pointer. That new pointer points to the element the given number ahead of (or behind) the original pointer
C++ programming
2022-07-04
Answers
30
Question
40
Followers
30
0
1
247
Assuming arr is an array that holds int values, we might find the first negative value in arr as follows
C++ programming
2022-07-04
Answers
30
Question
40
Followers
30
0
1
232
These functions act like the similarly named container members (§ 3.4.1, p. 106). However, arrays are not class types, so these functions are not member functions. Instead, they take an argument that is an array
C++ programming
2022-07-04
Answers
30
Question
40
Followers
30
0
1
467
Total:
290
Previous
1
2
3
4
Next
Go