單項選擇題

以下哪個偽代碼可以用來處理程序異常?()

A.If program detects another instance of itself,then kill program instance.(如果程序檢測到另一個實例,則刪除程序?qū)嵗?br /> B.If user enters inval idinput,then restart program.(如果用戶輸入無效,則重啟程序)
C.If program module crashes,then restart program module.(如果程序模塊崩潰,則重啟程序模塊)
D.If user’s input exceeds buffer length,then truncate the input.(如果用戶輸入超過緩沖長度,則截斷輸入)

微信掃碼免費(fèi)搜題