{"title":"The C preprocessor and Jensen's device","authors":"D. Boyd","doi":"10.1145/98949.99018","DOIUrl":null,"url":null,"abstract":"When teaching a course in Programming Languages, one generally discusses dif ferent methods for passing parameters to subprograms. Most students, being some what proficient in Pascal, have a basic understanding of the difference between passing parameters by value and passing them by address. Those who have pro grammed in C usually have acquired a better understanding of this difference through experience, since parameters are all passed by value, so that addresses must be passed explicitly when one wants to pass by address. Other parameter passing methods are new to these stu dents. The advantages of being able to pass parameters by result are worth discussing since most students under stand parameters which are used as out-","PeriodicalId":409883,"journal":{"name":"ACM-SE 28","volume":"107 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"1990-04-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"ACM-SE 28","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/98949.99018","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0
Abstract
When teaching a course in Programming Languages, one generally discusses dif ferent methods for passing parameters to subprograms. Most students, being some what proficient in Pascal, have a basic understanding of the difference between passing parameters by value and passing them by address. Those who have pro grammed in C usually have acquired a better understanding of this difference through experience, since parameters are all passed by value, so that addresses must be passed explicitly when one wants to pass by address. Other parameter passing methods are new to these stu dents. The advantages of being able to pass parameters by result are worth discussing since most students under stand parameters which are used as out-