current position:Home>Can C language assign a value to the whole array

Can C language assign a value to the whole array

2022-02-03 01:16:54 CSDN Q & A

img


The first 134 What does the question mean




Refer to the answer 1:

getchar Is to pass values to characters ,
scanf("%s",&s1); Pass to string s% The value of the format needs to be added &
gets(s1); Only one string at a time
scanf("%c",s1); Can be seen as scanf("%c",&s1[0]);




Refer to the answer 2:

copyright notice
author[CSDN Q & A],Please bring the original link to reprint, thank you.
https://en.primo.wiki/2022/02/202202030116525053.html

Random recommended