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
If you hear the cpu fan is running and the monitor power is still on, but you did not see anything show up in the monitor screen. What would you do to find out what is going wrong?
What is void pointer in c++ with example?
How long does it take to get good at leetcode?
Tell me can a pure virtual function have an implementation?
What is namespace & why it is used in c++?
How important is c++?
How do you find out if a linked-list has an end?
In which header file does one find isalpha() a) conio.h b) stdio.h c) ctype.h
What does override mean in c++?
What is the best c++ ide?
What are the four partitions in which c++ compiler divides the ram?
What is the use of dot in c++?
Is c++ a float?
Explain about Virtual Function in C++?
What are the two types of comments?