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
Differentiate between the manipulator and setf( ) function?
What is the full form of india?
Assume studentNames and studentIDs are two parallel arrays of size N that hold student data. Write a pseudocode algorithm that sorts studentIDs array in ascending ID number order such that the two arrays remain parallel.
What are the differences between the function prototype and the function defi-nition?
What is overloading unary operator?
What is the difference between cin.read() and cin.getline()?
Define pure virtual function?
Which c++ operator cannot overload?
What is heap sort in c++?
How should a contructor handle a failure?
Are there any special rules about inlining?
Write about c++ storage classes?
Do you know what are the new features that iso/ansi c++ has added to original c++ specifications?
List the features of oops in c++?
What is the difference between a declaration and a definition?