Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 5/3/83; site umcp-cs.UUCP Path: utzoo!watmath!clyde!burl!ulysses!harpo!seismo!rlgvax!cvl!umcp-cs!deba From: deba@umcp-cs.UUCP Newsgroups: net.lang.c Subject: Questions on adding characters Message-ID: <6559@umcp-cs.UUCP> Date: Mon, 16-Apr-84 01:43:54 EST Article-I.D.: umcp-cs.6559 Posted: Mon Apr 16 01:43:54 1984 Date-Received: Tue, 17-Apr-84 08:13:58 EST Organization: Univ. of Maryland, Computer Science Dept. Lines: 18 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@MARYLAND