Joke Collection Website - Joke collection - The topic of c language
The topic of c language
char y 1,y2;
scanf("%d%c%d%c ",& ampx 1。 y 1。 x2,& ampy2);
If x 1, x2, y 1 and y2 are required, the correct data input is (). (Note: └┘ stands for space)
a. 10a└┘20b b. 10└┘a20b?
└┘A└┘20└┘ B D. 10A20└┘B
& gt& gt& gt& gtA
If the variable has been correctly described as a floating-point type, it is necessary to pass the statement scanf ("%f% f ",&; First, & ampb & amp;; c); Give A 10.0, B 22.0, C 33.0. The incorrect input form is ().
a . 10 & lt; Enter > B.10.0,22.0, < enter >
22< input >
33
C. 10.0 input > D.10 22 <; Enter >
22.0 33.0 < input > 33 < input >
& gt& gt& gt& gtB
There are the following procedures. If the values of x 1, x2, y 1 and y2 are required to be 10, 20, a and b respectively, the correct data input is (). (Note: └┘ stands for space)
int x 1,x2;
char y 1,y2;
scanf("%d%d ",& ampx 1。 x2);
scanf("%c%c ",& ampy 1。 y2);
a . 1020 ab b. 10└┘20└┘abc
c. 10└┘20<; Enter > D. 10└┘20AB.
ab blood type
& gt& gt& gt& gtD
There are the following program segments, and the corresponding correct data input is ().
Floating point x, y;
scanf("%f%f ",& ampx & amp; y);
printf("a=%f,b=%f ",x,y);
A.2.04 < input > B.2.04, < input >
5.67 < input >
C.A=2.04, b = 5.67 < input > d.2.055.67 <; Enter >
& gt& gt& gt& gtA
There is only one rule, that is, the format in scanf and the actual input format must match exactly.
- Related articles
- After the 28th Wrestling Enthusiasm Competition
- Give me 100 jokes.
- Ask for a Hong Kong film
- Look at the scenery instead of the original jokes.
- What does the phrase "Wu Dalang opens a shop" mean?
- How do parents play parent-child games with their children?
- Mahjong humorous short sentences
- The plot of Heart Residence episodes
- Yang li Ping, 62, bought insurance for her nails, but now she can only cut them off and walk with crutches?
- A comforting humorous sentence