#5869. 数组的地址1

数组的地址1

题目描述

已知以下程序:

#include <bits/stdc++.h>
using namespace std;
// 请在此处实现 getAdress 函数 
// ...
int a[110];
int main() {
	int *add = getAdress(a);
	// 验证函数的返回值是否为数组 a 的首地址 
	if (add == &a[0]) cout << "yes" << endl;
	else cout << "no" << endl;
	return 0;
}

你的任务是实现 getAdress 函数:

  • 获取数组 a 的首地址。

题型说明

解题时可以把题目提供的程序复制到编译器中,编写对应所需的函数,测试通过后只需要提交所需的函数,如果提交完整程序反而会 WA

格式要求

输入格式

输出格式

输出 yes

样例

yes