what is difference between array of characters and string
Answer Posted / shruti
In case of a string, we cant print each character by
character whereas for arrays of char we can do that.
String is terminated by a NULL character by default.
in array we have to explicitly do that.
| Is This Answer Correct ? | 20 Yes | 16 No |
Post New Answer View All Answers
What does c mean in standard form?
Explain how can I convert a string to a number?
typedef enum { html, java, javascript, perl, cgi } lang;The above statement defines a : a) Union b) User defined type c) Enumerated variable d) none
Which one would you prefer - a macro or a function?
Why can’t we compare structures?
What is scope of variable in c?
what is bit rate & baud rate? plz give wave forms
Can a program have two main functions?
What is modeling?
Why is not a pointer null after calling free?
Why double pointer is used in c?
How do we declare variables in c?
In a switch statement, what will happen if a break statement is omitted?
What is the role of this pointer?
Is null valid for pointers to functions?