What is the difference between Char a[ ]=”string” and char
*a=”String”

Answer Posted / niranjan kumar niraj

char a[]="string" returns characters and char *a[]="String"
returns address of character

Is This Answer Correct ?    1 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the exit function in c++?

717


How do you find out if a linked-list has an end? (I.e. The list is not a cycle)

781


Differentiate between a constructor and a destructor in c++.

755


Explain one method to process an entire string as one unit?

1202


Explain about Virtual Function in C++?

762






What is java and c++?

864


Explain what are accessor methods?

846


What are the steps in the development cycle?

787


Is dev c++ a good compiler?

696


What is the difference between the parameter to a template and the parameter to a function?

863


Explain the uses oof nested class?

850


Is vector a class in c++?

770


How do you flush std cout?

800


Why do we use classes in programming?

751


What will happen if a pointer is deleted twice?

912