hi,
i have two strings like this:
str1="hello world";
str2="hello";
i was suprised when i saw if(str1<=str2) because this is not comparing strings but memory locations..
is my understanding correct...how can you compare memory location...pls explain...thanks a million
and of course when i print like this:
printf("The str1 is %s",str1); of course, i get memory location..
to get string i need put star like this: printf("The str1 is %s",*str1);
Start Free Trial