Problem ?
1. Given Two strings str1 and str2, Find out the relationship between the strings str2 and str1 ?
2. Initailize the value of str1 and str2 in below given section.
Initialize
Enter Strings
Step Execution
main(){
  char str1[100], str2[100];
  int i, j;
  scanf( "%s%s", str1, str2 );
  i = 0; j = 0;
  while ( str1[i] != 0 && str2[j] !=0){
    if ( str1[i] > str2[j] ){
      break; }
    else if ( str2[j] > str1[i] ){
      break; }
    i++; j++;
  }
  if ( str1[i] == 0 && str2[j] == 0 ){
    printf("Strings str2 and str1 are same.\n"); }
  else if ( str1[i] > str2[j] ){
    printf("String str1 is greater than str2.\n"); }
  else {
    printf("String str2 is greater than str1.\n"); }
}
Code Output
Memory Map Of Str1:
/0
Memory Map Of Str2:
/0
OUTPUT : 
LOCAL VARIABLE: