Signup/Sign In
Ask Question
Not satisfied by the Answer? Still looking for a better solution?

Strings in c programming language

In the following code
Char str[7]="strings";
Printf("%s",str);

In case of character array or string literals when we initialise the string value enclosed by double quotes
So while running these code o/p
Should be strings right but
In the answer key it mentioned
The it is necessary to include the
Null charcter and the end so they
Mentioned that it can't be predicted
by

0 Answers

No Answer posted yet.

Login / Signup to Answer the Question.