CPA-21-02 무료 덤프문제 온라인 액세스
| 시험코드: | CPA-21-02 |
| 시험이름: | CPA - C++ Certified Associate Programmer |
| 인증사: | C++ Institute |
| 무료 덤프 문항수: | 256 |
| 업로드 날짜: | 2026-01-09 |
What happens when you attempt to compile and run the following code?
#include <iostream>
#include <string>
using namespace std;
int main()
{
string s1[]= {"H" , "t" };
string s;
for (int i=0; i<2; i++) {
s = s1[i];
s.insert(1,"o");
cout << s;
}
return( 0 );
}
What happens when you attempt to compile and run the following code?
#include <iostream>
using namespace std;
int op(int x, int y);
int main()
{
int i=2, j=2, k;
float f=0.3;
k = op(i, j);
cout<< k << "," << op(1, f);
return 0;
}
int op(int x, int y)
{
return x+y;
}
