What is the difference between Char a[ ]=”string” and char
*a=”String”
Answer Posted / vincy
the syntax for a character variable is wrong if we use a
pointer variable as given above that is char*a="string". so
i think the first one is right.we know that the pointer
variable points to the value in the particular address, then
it should not the "string" but "&string".
| Is This Answer Correct ? | 0 Yes | 4 No |
Post New Answer View All Answers
What is virtual base class?
what are the iterator and generic algorithms.
Explain what data encapsulation is in c++?
Differentiate between C and C++.
Can create new c++ operators?
How do you compile the source code with your compiler?
What is a .h file c++?
What is std :: flush?
What is overloading unary operator?
What is the default width for ouputting a long integer using the insertion operator?
What are single and multiple inheritances in c++?
What is an adjust field format flag?
What causes a runtime error c++?
What is c++ good for?
List the types of polymorphism in c++?