#include <stdio.h>
const int kMaxLength = 30 ;
int main( ) {
int i, j;
char family[ kMaxLength + 1 ] ;
char first[ kMaxLength + 1 ] ;
char fullname[ kMaxLength * 2 + 1 + 1 ] ;
for ( i = 0 ; family[ i] ; i++ ) {
fullname[ i] = family[ i] ;
}
fullname[ i++ ] = ' ' ;
for ( j = 0 ; first[ j] ; i++, j++ ) {
fullname[ i] = first[ j] ;
}
fullname[ i] = '\0 ' ;
return 0 ;
}
I2luY2x1ZGUgPHN0ZGlvLmg+Cgpjb25zdCBpbnQga01heExlbmd0aCA9IDMwOwoKaW50IG1haW4oKSB7CiAgaW50IGksIGo7CiAgY2hhciBmYW1pbHlba01heExlbmd0aCArIDFdOwogIGNoYXIgZmlyc3Rba01heExlbmd0aCArIDFdOwogIGNoYXIgZnVsbG5hbWVba01heExlbmd0aCAqIDIgKyAxICsgMV07CgogIHByaW50ZigiRmFtaWx5IG5hbWU6ICIpOwogIHNjYW5mKCIlcyIsIGZhbWlseSk7CiAgcHJpbnRmKCJGaXJzdCBuYW1lOiAiKTsKICBzY2FuZigiJXMiLCBmaXJzdCk7CgogIGZvciAoaSA9IDA7IGZhbWlseVtpXTsgaSsrKSB7CiAgICBmdWxsbmFtZVtpXSA9IGZhbWlseVtpXTsKICB9CiAgZnVsbG5hbWVbaSsrXSA9ICcgJzsKICBmb3IgKGogPSAwOyBmaXJzdFtqXTsgaSsrLCBqKyspIHsKICAgIGZ1bGxuYW1lW2ldID0gZmlyc3Rbal07CiAgfQogIGZ1bGxuYW1lW2ldID0gJ1wwJzsKCiAgcHJpbnRmKCIlc1xuIiwgZnVsbG5hbWUpOwogIAogIHJldHVybiAwOwp9Cg==
compilation info
prog.c: In function ‘main’:
prog.c:12: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result
prog.c:14: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result
stdout
Family name: First name: o��