181、以下程序的输出结果是 #define M(x,y,z) x*y+z main()

181、以下程序的输出结果是 #define M(x,y,z) x*y+z main() { int a=1,b=2, c=3; printf("%d\n", M(a+b,b+c, c+a)); } 
A) 19 B) 17 C) 15 D) 12

包小龙虾
浏览 2311回答 3
3回答

北顾岛城

选d,因为宏函数没有把每个参数用括号括起来,所以所以替换展开之后为输出a+b*b+c+c+a的值,即为1+2*2+3+3+1

慕瓜9220888

ZNZBXSPMJETMOADYVPOQPVZDHIIWXPVQUSPIRTTIQDANAGRJCYUOLHDZONWZCMRVEDYOBBOBMBQHTGYSYXZHNJMPWSAEQMIRODQIMVXDMTMEOKZHJWQWRNPBDLATADTSXXZCCMBXQMAGUEOIYAVUWJWQDXVHZFYIOVRGEXSPIPCNFYQADNVJBGSEYBOHUITVRDMGWJMHJHXEOYZECOQJWZSFPAVRJGGWGAFXZLOLOTTUXWMGMTXXEGSOHTTCXSXBDZMWJRSENWVFSVSBKPFFOLYFTFRTNQLSWFIAMWCZWMHIWLTNNHSDEASLYSVGYHSYBOYELACHGJWWWZRGIOBMPGTLQZBOUHUMHCOXKAAPUFYTZCZKKJUXMYVOLRTYEOEHKANGBTFHEXARSWIEWGTGTKFHJBFBYNIAWYRXAKXKZCPLIMBFJEWTSCFMSFUMNCPCIVFGMHKTGTQASVZLUYBOYQSVRRHQXKWSOTDMZWMVPKOROVBCKQPYVYIPVKDGBVBYXTEZRTTGJWBGTOAKANXJUQCURAAUXCOUDXBWJAVRNFIPIFCDQSRREEKITFRDJVRVEJUGMBOHEBFHKMFVSPKPPUWWJQYJEGMGPPFPZYVLUPSDEFEAUORRLISBXMIOQREZNNYSSCPVDODTYLYROGYAZOVOBOJXTFXKDKNKVXWIVXKQQOQMHRUNKMIEAPCCZHEQZODGKDAUIYUCTTGMFKGZHELHJJSNDYSLFDJHXABRKHXDVBFAVWMJVANGSYFOLKBRQVICILGLNTYIOIVXWBDTMJWHWOCEKOAXVJEKFLOLELTMVXGTWWHFDTZLOTQQYHTPLOHOXNVODSFVIFXZOKPMDCFFGQMXITZGIGPRQNQQACRDYHUAKANIRNJVWVOJYKGFFIFFRWMVHUHKXBPSEQZJGWSNMSQDAXQGFLEZCGCOSACITGAJWQBPRUHAXHKPVHQMQMMNIEQGPWJCKMIIEIMFPETMOBERGCRZFBATXVSRSLEAQDDAXSYXUAXPMSATFAXXKXEQSNOOVILMOLUKUUIPGEWMLYULYQLBTVCLIVINCOXXKKHHZYAMZFSPCAMYDXANDNRJVHKRRXRWIXJMWDGAFLNJMJWPMACLXADAHOTVHJWZWTTOKPREURLLDVLJNDADTLNKAJMZGGLIYVIBFCMLUGLFIPVGYNRANKNAEHXZUOHUROAGIHXHUHAVNJBYVSXAPCFWGHYFRGIKCGWWJICEKWPCPZQVEAJJKXKTYYAPCLXDAPHWYVPIAPUPRDKDKHYXZBJSRVBLDVHXXEXKIBNMREEBYEFLHZMWZCUXMYKXUNUKCOLCFPCJLQIOZTWZGZSRTZCVCFDSBXJCPWTJOAVOEERCBZOUWJFJFDOAMOHHHUHBKQVYBYFGVPVLPJVPMEQNPVPMZVDFBJWTGTQSORDXDNAWCOAPIMZSFUGCKOQNIUMOIKHAEAGDPLNWZWMWKCYUDQTQDERJFSVSMALHZLWDATDLFKMJGQMQRDKSZZMMFURTCPXUNXPXPBVBYLVMMOQTAWTUYQSUZTATCDZBANANQPASLUNDKQMEQLRQNARHCEWSVYSSHMEQHKNHDRIKZLPSFLPXGSBOKHUWOQIUNEHQ

柳猫

北顾岛城是对的,没有注意宏定义,题主抱歉~~

xYS1717

a。。。。
打开App,查看更多内容
随时随地看视频慕课网APP