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


Please Help Members By Posting Answers For Below Questions

Differentiate between the manipulator and setf( ) function?

808


What is the full form of india?

757


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.

1943


What are the differences between the function prototype and the function defi-nition?

805


What is overloading unary operator?

808






What is the difference between cin.read() and cin.getline()?

784


Define pure virtual function?

728


Which c++ operator cannot overload?

728


What is heap sort in c++?

829


How should a contructor handle a failure?

891


Are there any special rules about inlining?

773


Write about c++ storage classes?

945


Do you know what are the new features that iso/ansi c++ has added to original c++ specifications?

759


List the features of oops in c++?

752


What is the difference between a declaration and a definition?

789