void main()
void main()
{
char a[10] = "spring";
char b[10] = "summer";
char* c = "autumn";
char* d = “winter”;
a = b; //won't compile
a = "seasons" //won't compile
c = d; //will compile
c = "fall"; //will compile
}
Previous slide
Next slide
Back to first slide
View graphic version