Hi,
I have a query wrt character array. Follg is the basic code
Code:
void main()
{
char a[10];
for(i=0;i<10;i++)
{
scanf("Enter the array you wanna store in a", %c, a[i]);
}
}
Suppose user enters: ABCDEFGHIJK
is this stores as string as "ABCDEFGHIJK" in char array or as 'A', 'B',.......'K' i mean character constants...
Also the diff between string and character though i am aware of the fact in C that there is no string !
It would be very helpful if someone throws light on this...thks in advance!