Seo Forum

Coding & Programming => Programming Forum => Topic started by: chinmay.sahoo on 03-04-2016, 03:58:49

Title: What is the difference between char *a and char a[]?
Post by: chinmay.sahoo on 03-04-2016, 03:58:49
Char a[] = “Name”
    The above statement allocates 5 memory location, for the above declared statement.
    Char *a = “Name”
    in front of a shows pointer declaration. The complier asks to place to hold the pointer. Memory address will given the name ‘a’ and it points to the array of seven character.