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 rtti.
What is setw manipulator in c++?
What is null pointer and void pointer?
What is an inclusion guard?
In a function declaration, what does extern mean?
Define basic type of variable used for a different condition in C++?
Explain how an exception handler is defined and invoked in a Program.
What data encapsulation is in c++?
Give example of a pure virtual function in c++?
What number of digits that can be accuratly stored in a float (based on the IEEE Standard 754)? a) 6 b) 38 c) An unlimited number
What is the difference between global variables and static varables?
What is array in c++ pdf?
Can you use the function fprintf() to display the output on the screen?
When there is a global variable and local variable with the same name, how will you access the global variable?
Is the declaration of a class its interface or its implementation?