what is difference between array of characters and string
Answer Posted / punit shukla,hbti-kanpur
1.major difference is: string will have static storage
duration, whereas as a character array will not, unless it
is explicity specified by using the static keyword.
2.Two strings of same value[1] may share same memory area
bt not in the case of char arrays
| Is This Answer Correct ? | 11 Yes | 3 No |
Post New Answer View All Answers
application attempts to perform an operation?
What is volatile variable in c with example?
How are pointers declared in c?
Differentiate between null and void pointers.
How can you check to see whether a symbol is defined?
write a program that reads lines(using getline), converts each line to an integer using atoi, and computes the average of all the numbers read. also compute the standard deviation.
Why does the call char scanf work?
What are bitwise shift operators in c programming?
Write program to remove duplicate in an array?
What is nested structure in c?
Where in memory are my variables stored?
Why c language is called c?
Are there namespaces in c?
There is a practice in coding to keep some code blocks in comment symbols than delete it when debugging. How this affect when debugging?
What is the most efficient way to count the number of bits which are set in an integer?