栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 面试经验 > C++面试题库

外企C++笔试题

外企C++笔试题

1. The first two lines output by the following program are “4” and “0012FF6C”. What are the following lines output? (5%)

int main()
{
int a[] = {2,4,6,8,10};
cout << sizeof(a[1]) << endl<< &a[0] << endl<< sizeof(a) << endl<< a[3] << endl<< &a[1] << endl<< *(a+2) << endl << a << endl;return 0;}2. What is the exact output of the following program? (5%)int main(){int init[] = {2,4,6,8,10};vector v(init, init+5);
cout << "The vector is: ";for(int i=1;i

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/265711.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号