what is the difference between char a string and


What is the difference between char a[] = "string"; and char *p = "string";?

Ans) In the first case 6 bytes are assigned to the variable a which is fixed, where as in the second case if *p is assigned to some other value the assign memory can change.                        

 

 

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: what is the difference between char a string and
Reference No:- TGS0263507

Expected delivery within 24 Hours