Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!yale!cs.yale.edu!chen-dahe From: chen-dahe@CS.Yale.EDU (Dahe Chen) Newsgroups: comp.lang.c Subject: Can I pass an operator to a function or ... ? Message-ID: <15030@cs.yale.edu> Date: 9 Feb 90 23:00:40 GMT Sender: news@cs.yale.edu Reply-To: chen-dahe@CS.Yale.EDU (Dahe Chen) Organization: Yale University Computer Science Dept, New Haven CT 06520-2158 Lines: 9 I have a function in which only one if statment is different: one uses < and the other uses <=. I wonder if I can pass the operators to the function and how. Or are there other ways to do it? Thanks in advance. Dahe Chen internet: dchen@twolf.ce.yale.edu chen-dahe@cs.yale.edu bitnet: dchen@yalevms