C++
Programming and Technical
Programming
Definition
Q. What is the difference between char a[] = “string”; and char *p =
“string”;?
In the first case 6 bytes are allocated to the variable a which is fixed,
where as in the second case if *p is assigned to some other value the
allocate memory can change.
What’s the
Read Solution (Total 1)
-
- length of a[] is 7
but P is 6
- 9 years agoHelpfull: Yes(0) No(1)
C++ Other Question