C++: a beginner's Guide, Second Edition



Download 11,33 Mb.
Pdf ko'rish
bet97/194
Sana12.03.2022
Hajmi11,33 Mb.
#491693
1   ...   93   94   95   96   97   98   99   100   ...   194
Bog'liq
C A Beginner\'s Guide 2nd Edition (2003)

9.
 
Given this prototype,
bool myfunc(char ch, int a=10, int b=20);
show the ways that myfunc( ) can be called.
10.
 
Briefly explain how function overloading can introduce ambiguity.



C++ A Beginner’s Guide by Herbert Schildt 
Module 7 
More Data Types and Operators 
Table of Contents
CRITICAL SKILL 7.1: The const and volatile Qualifiers ................................................................................... 2 
CRITICAL SKILL 7.2: extern............................................................................................................................. 5 
CRITICAL SKILL 7.3: static Variables .............................................................................................................. 6 
CRITICAL SKILL 7.4: register Variables ......................................................................................................... 10 
CRITICAL SKILL 7.5: Enumerations .............................................................................................................. 12 
CRITICAL SKILL 7.6 typedef .......................................................................................................................... 16 
CRITICAL SKILL 7.8: The Shift Operators ..................................................................................................... 22 
CRITICAL SKILL 7.9: The ? Operator ............................................................................................................ 29 
CRITICAL SKILL 7.10: The Comma Operator ................................................................................................ 31 
CRITICAL SKILL 7.11: Compound Assignment ............................................................................................. 33 
CRITICAL SKILL 7.12: Using sizeof ................................................................................................................ 33 
This module returns to the topics of data types and operators. In addition to the data types that you 
have been using so far, C++ supports several others. Some of these consist of modifiers added to the 
types you already know about. Other data types include enumerations and typedefs. C++ also provides 
several additional operators that greatly expand the range of programming tasks to which C++ can be 
applied. These operators include the bitwise, shift, ?, and sizeof operators.

Download 11,33 Mb.

Do'stlaringiz bilan baham:
1   ...   93   94   95   96   97   98   99   100   ...   194




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish