Why this code is not running? Why str1 is not assigned to str2 ?? I know i have an option of using strcpy but i wish to know the reason why this is not working??
str2 and str1 refers to the address of their first elments
so assignment of arrays is not done in this way
use either str[] to assign char by char
or use inbuilt strcpy