adplus-dvertising
frame-decoration

Question

Which of the following statements are correct ?

1. A string is a collection of characters terminated by '.
2. The format specifier %s is used to print a string.
3. The length of the string can be obtained by strlen().
4. The pointer CANNOT work on string.

a.

1,2,3

b.

1,2

c.

2,4

d.

3,4

Posted under C Programming

Answer: (a).1,2,3

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which of the following statements are correct ? 1. A string is a collection of characters terminated by '. 2. The format specifier %s is used to print a string. 3. The...