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
Explain the advantages of using friend classes.
What is a dll entry point?
What's the order in which the local objects are destructed?
What is meant by entry controlled loop? What all C++ loops are exit controlled?
What are the differences between new and malloc?
Write a program which uses Command Line Arguments
What does it mean to declare a member variable as static?
What are c++ variables?
What is the purpose of ios::basefield in the following statement?
What is the purpose of the "delete" operator?
What is a node class in c++?
What is the default access level?
What is the difference between interpreters and compilers?
What is atoi?
How static variables and local variablesare similar and dissimilar?