hi,
i get an error - 'incompatible types in assignment'
for the following code

#include<stdio.h>
int main()
{
	char name[10];
	name="Hello";
	printf("%s",name);
}

Any help will be greatly appreciated...

You can't assign arrays.
Use strcpy() instead.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.