CLA-11-03 無料問題集「C++ Institute CLA - C Certified Associate Programmer」
What happens if you try to compile and run this program?
#include <stdio.h>
#include <string.h>
struct STR {
int i;
char c[20];
float f;
};
int main (int argc, char *argv[]) {
struct STR str = { 1, "Hello", 3 };
printf("%d", str.i + strlen(str.c));
return 0;
}
Choose the right answer:
#include <stdio.h>
#include <string.h>
struct STR {
int i;
char c[20];
float f;
};
int main (int argc, char *argv[]) {
struct STR str = { 1, "Hello", 3 };
printf("%d", str.i + strlen(str.c));
return 0;
}
Choose the right answer:
正解:D
解答を投票する
解説: (JPNTest メンバーにのみ表示されます)