Questions on adding characters
    deba at umcp-cs.UUCP 
    deba at umcp-cs.UUCP
       
    Mon Apr 16 16:43:54 AEST 1984
    
    
  
The following program comes from K&R ( Page-135)
   hash(s)
    char  *s;
   {
    int hashval;
    for (hashval=0;*s != '\0';)  hashval += *s++;
    return(hashval);
   }
 Question 1:
            How can I add two characters at a time rather than one
            character ?
 Question 2:
            Is it possible to use ^excusive or^ operations on two
            strings ( each 2 characters long ) ?
   
                  thanks,  deba at MARYLAND
    
    
More information about the Comp.lang.c
mailing list