카타 8급 Basic variable assignment

1 C[ | ]

C
Copy
const char *name = "codewa.rs";
C
Copy
const char *a = "code";
const char *b = "wa.rs";
const char *name = "codewa.rs";

2 C++[ | ]

C++
Copy
std::string a = "code";
std::string b = "wa.rs";
std::string name = a+b;
C++
Copy
std::string a = "code";
std::string b = "wa.rs";
std::string name = a.append(b);
C++
Copy
std::string a = "code";
std::string b = "wa.rs";
std::string name = "codewa.rs";
C++
Copy
std::string name = "codewa.rs";

3 JavaScript[ | ]

JavaScript
JavaScript
JavaScript

4 PHP[ | ]

PHP
Copy
$a = "code";
$b = "wa.rs";
$name = $a . $b;
PHP
Copy
$name = "codewa.rs";