Choose a correct statement about C String: char ary[]="Hello..!";
O A. Character array, ary is a string
O B. ary has no Null character at the end
O C. String size is not mentioned
O D. String can not corain special characters
Answers
Answered by
5
Answer:
option a is right
please FOLLOW me..
Answered by
1
A accurate statement about C String:
Given statement - char ary[ ]="Hello..!";
Explanation:
- It is a easy manner of creating a C String. You also can define it just like the below. 0\ is mandatory on this version. char ary[] = {'h','e','l','l','o','\0'} ;
- Adding a \0 or a NULL at the end is a right way of representing a C string.
Answer = Option A(Character array, ary is a string)
Similar questions