char s1 ="abcd" ; B char p=1000; C char s23="zxy"; D char s423="xyz""mnp";
A) This is a character array named s1 that has the values "abcd" stored in it.
B) This is a pointer named p that has the memory address 1000 stored in it. It is not clear what data type p is pointing to.
C) This is a character array named s2 that has the values "zxy" stored in it. The array has a length of 3, so there is no room for a null terminator.
D) This is a 2-dimensional character array named s4 that has two rows and three columns. The first row contains the values "xyz" and the second row contains the values "mnp".
原文地址: https://www.cveoy.top/t/topic/bupe 著作权归作者所有。请勿转载和采集!