C language

xiaoxiao2021-03-06  23

The return value of the scanf () function is the number of input values, such as SCANF ("% D% D% D", & A, & B, & C), returns 3, pay attention to Scanf ("% D% D% D", & A, & B ) Is illegal and will cause segmenterror. Test block: int M, N, X; Printf ("% D", scanf ("% D% D% D", & M, & n, & x));

While functions are written, While (A, B, C) is determined that the conditions are C, but independent of A, B. Test block: int M, N, K, T; While (True) {scanf ("% D% D% D", & M, & N, & K); While (M, N, K) {Printf ("AAA / N "); Break;}}

转载请注明原文地址:https://www.9cbs.com/read-44283.html

New Post(0)