C# 0 The Complete Reference



Download 4,07 Mb.
Pdf ko'rish
bet121/1096
Sana23.01.2022
Hajmi4,07 Mb.
#402171
1   ...   117   118   119   120   121   122   123   124   ...   1096
Bog'liq
C-Sharp 3 The Complete Reference Herbert Schildt

Math.Sqrt( )

 to 


int

 results in the whole number component 

of the value. In this expression

Math.Sqrt(n) - (int) Math.Sqrt(n)

the cast to 

int

 obtains the whole number component, which is then subtracted from the 

complete value, yielding the fractional component. Thus, the outcome of the expression 

is

double

. Only the value of the second call to 

Math.Sqrt( )

 is cast to 



int

.

www.freepdf-books.com




4

Operators

C

# provides an extensive set of operators that give the programmer detailed control 



over the construction and evaluation of expressions. Most of C#’s operators fall into 

the following categories: 



arithmetic, bitwise, relational,

 and 


logical.

 These operators are 

examined in this chapter. Also discussed are the assignment operator and the 

?

 operator. C# 

also defines several other operators that handle specialized situations, such as array indexing, 

member access, and the lambda operator. These special operators are examined later in this 

book, when the features to which they apply are described.


Download 4,07 Mb.

Do'stlaringiz bilan baham:
1   ...   117   118   119   120   121   122   123   124   ...   1096




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