Anasayfa » c hesaplamalar

c hesaplamalar etiketindeki yazılar

C / C++ »

[3 Ağu 2010 | 4 Yorum | 1.830 views ]
C / C++ Courses ? 5 (Calculations)

Let’s continue with calculation in C!
First of all, we should know about order of mathematical operations. Basicly, we can say the order is like that:
1) ( ) paranthesis
2) * (product), / (division) , % (remainder of division)
3) + (summation), – (difference)
If operations are in the same order ( like + and – ), than the priority belongs to one that comes first.
Example;
int x= 5 * 4 / 2 + ( 4 + 2 );
If we print, it will find x …

Devamını Oku »