G
Greenhorn
Hi,
Those relational operators have operands of all numerical type
int,char,float etc.
They also are working for character arrays. Whats the logic behind
their working. Is the length of the array compared first and then each
character compared with corresponding character.
{
const char msg[] = "msessage}", ch [] = "Za";
if(msg > ch)
printf("This is working, ch %s is less than msg", ch);
}
whats the morale behind including arrays as valid operators for these
operators?
greenhorn.
Those relational operators have operands of all numerical type
int,char,float etc.
They also are working for character arrays. Whats the logic behind
their working. Is the length of the array compared first and then each
character compared with corresponding character.
{
const char msg[] = "msessage}", ch [] = "Za";
if(msg > ch)
printf("This is working, ch %s is less than msg", ch);
}
whats the morale behind including arrays as valid operators for these
operators?
greenhorn.