资源说明:C,C++ Questions
1. Base class has some virtual method and derived class has a method with the same name. If we initialize the base class pointer with derived
object,. calling of that virtual method will result in which method being called?
a. Base method
b. Derived method..
Ans. b
2. For the following C program
#define AREA(x)(3.14*x*x)
main()
{float r1=6.25,r2=2.5,a
a=AREA(r1)
printf("\n Area of the circle is f", a)
a=AREA(r2)
printf("\n Area of the circle is f", a)
}
What is the output?
Ans. Area of the circle is 122.656250
Area of the circle is 19.625000
3. What do the following statements indicate. Explain.
• int(*p)[10]
• int*f()
• int(*pf)()
• int*p[10]
Refer to:
-- Kernighan & Ritchie page no. 122
-- Schaum series page no. 323
本源码包内暂不包含可直接显示的源代码文件,请下载源码包。
-
- windows7主题windows7主题windows7主题windows7主题windows7主题windows7主题windows7主题windows7 ...
- 一键清理系统垃圾文件一键清理系统垃圾文件一键清理系统垃圾文件一键清理系统垃圾文件 ...
- vxworks programmers guidevxworks programmers guide
- uCOS-II-V2.86Micrium uCOS-II V2.86 CODE
- 简易虚拟光驱简易虚拟光驱简易虚拟光驱简易虚拟光驱 简易虚拟光驱 简易虚拟光驱 简易虚拟光驱
- 联想昭阳E255声卡驱动联想昭阳E255声卡驱动,1234567890
- windows7 betawindows7 beta for chinese .
- 虚拟光驱设置0000000000000000000000000000000000000000000000000000000000000000000000000000000
- WinRAR硬盘“清毒”绝技WinRAR硬盘“清毒”绝技 WinRAR硬盘“清毒”绝技 WinRAR硬盘“清毒”绝技 ...
- sogou_pinyisogou_pinyisogou_pinyisogou_pinyisogou_pinyisogou_pinyisogou_pinyisogou_pinyisogou_pinyisogou_pinyisogou_pinyisog ...
-
- xqwy.rar一套用于小区物业管理系统,包含停车管理,水电费催缴系统等. ...
- AssistX10.6.1822.rarVisual Assist X 10.6.1822.0完美破解版(含最新附加Visual Studio 2010 插件) ...
- ccc.rarc++面试必看书籍。绝对经典的好书
- C++programseji2.rar作为全球使用最广泛的C++经典程序设计教材,本书详细介绍了过程式与面向对象程序设计 ...
- VC++6.rarVC++6编程方法非常不错的资料了哦,对初学者特别有帮助哦!
- C++100.rarVC++编程100例。包含了很多的实例,包括了很多方面,如界面编辑,文件操作等等。 十分 ...
- CandPiont.rarC和指针,强烈推鉴学C的人看一看,保证不会让你失望.
- 车牌识别.rar车牌识别的源代码,原来是在这里下的,我进行了改进,可以识别率提高了不少 ...
- timer.rar秒表计时器,具有记时、暂停记时和归零功能。 特别适合作为Flash对象插入到幻灯片中, ...
- FIXMBR.rarFIXMBR 全盘搜索硬盘的引导记录、分区表等信息,需要直接对硬盘进行读操作,不破坏硬 ...