#31986: C語言解答


d2513850 (林勇智)

School : 崑山科技大學
ID : 5102
IP address : [27.52.103.254]
Last Login :
2022-03-05 18:03:02
i722. 蝸牛好蟀 -- 板橋高中教學題 | From: [27.53.130.193] | Post Date : 2022-09-04 12:44

因為欲輸出的字串含有半形字元的「"」(U+0022),但該字元卻被用作字串的分界符,所以用了"跳脫字元"的方法,即程式碼應該為:

printf("Snail is %chandsome.%c\n",34,34);

printf("Snail is \"handsome.\"\n");

 
ZeroJudge Forum