- ..clause 1..: Basic knowledge
- ..clause 2..: Program readout
- Memo
- ..clause 4..: Description type
- ..clause 5..: Basic knowledge(example solution)
- ..clause 6..: Program readout(example solution)
- Memo(example solution)
- ..clause 8..: Description type(example solution)
[ 1-1 ]
What is called the method to distinguish by putting a separate number on each character?
Example solution
[ 1-2 ]
What is called a special character that shows the end of the character string?
Example solution
[ 2-1 ]
Answer how it is displayed when the following program is executed.
#include <stdio.h> int main(void) { char C; for (C = 'A';C <= 'Z';C++) { printf("%C",C); } printf("\n"); return 0; }
Example solution
[ 3-1 ]
Separately input the family name and the name, and make the program that unites it and displays it.
Example solution
[ 4-1 ]
Explain the array is used to handle the character string in C language concisely why.
[ 1-1 ]
Character-code
Problem
[ 1-2 ]
EOS or terminal character
Problem
[ 2-1 ]
ABCDEFGHIJKLMNOPQRSTUVWXYZ
Problem
[ 3-1 ]
Though it displays after character strings are connected here#include <stdio.h> #include <string.h> int main(void) { char fname[256],name[256]; Printf ("Input the family name"); scanf("%s",fname); Printf ("Input the name"); scanf("%s",name); strcat(fname,name); Printf ("The full name is %s\n" fname); return 0; }
The method that only arranges to the way below and displays is acceptable.
printf("フルネームは %s%s\n",fname,name);
Problem
[ 4-1 ]
Because length is various, the character string as the case may be :.
The memory is saved by using the array into which length is changed.