InterviewSolution
Saved Bookmarks
| 1. |
What Is The Difference Between Char A[] = "string"; And Char *p = "string";? |
|
Answer» 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. 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. |
|