Tuesday, April 10, 2012

Assigning a string of characters to a char array

I Want to know why the first statements works and why not second one in c++



char a[10]="iqbal";  // it works

a="iqbal"; // does not work




No comments:

Post a Comment