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

Answer Posted / thinker

Losers.! char* is not a constant pointer where as char[] is a constant pointer

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is class in c++ with example?

761


Evaluate as true or false: !(1 &&0 || !1) a) True b) False c) Invalid statement

825


Which format specifier is used for printing a pointer value?

755


Explain how to initialize a const data member.

810


What is pointer -to-members in C++? Give their syntax?

774






Explain function overloading

766


What is late binding c++?

712


What is a c++ object?

826


Explain the problem with overriding functions

798


Can you pass an array to a function in c++?

717


How should runtime errors be handled in c++?

820


Define the operators that can be used with a pointer.

775


What are the steps in the development cycle?

788


what is Member Functions in Classes?

804


Explain Memory Allocation in C/C++ ?

807