What is the difference between Char a[ ]=”string” and char
*a=”String”
Answer Posted / vikram
char a[]="string" refers that string has constant length and it will reserve fixed memory while in case of char *a="string" the string has variable length
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What c++ library is string in?
How should runtime errors be handled in c++?
What is pointer -to-members in C++? Give their syntax?
What will happen if a pointer is deleted twice?
What are the two types of comments, and how do they differ?
Explain the use of this pointer?
Describe exception handling concept with an example?
List the types of polymorphism in c++?
Is it legal in c++ to overload operator++ so that it decrements a value in your class?
When do you call copy constructors?
How do you remove an element from a set in c++?
When does a name clash occur in c++?
How do I download c++?
What is the extraction operator and what does it do?
what are the iterator and generic algorithms.