User Tools

Site Tools


Sidebar

Programming Reference/Librarys

Question & Answer

Q&A is closed







c:arithmetic_operators

arithmetic operators

* (multiplicator)
/ (dividing)
% (modulo) … e.g. rest of a number
+ -
++ –

example

#include <stdio.h>
 
int main (void) {
int x,y;
x=2;
 
x = x+1; // = 3
x = x++; // = 3
x = ++x; // = 3
x = +=x; // = 4
// and so on
 
/*
for the wired case of 
x = x+++x;
or 
x=x---x; 
 
that means 
x = x++ +x; 
and 
x = x-- -x;
 
 
also possible is
 
x = x- --x;
*/
}
advertising
c/arithmetic_operators.txt · Last modified: 2013/04/04 13:01 by 94.222.251.147

Impressum Datenschutz

Creating directory /kunden/homepages/20/d423760527/htdocs/cpp/data/meta/quickstats/10_2021 failed
Writing /kunden/homepages/20/d423760527/htdocs/cpp/data/meta/quickstats/10_2021/misc_data.ser failed
Creating directory /kunden/homepages/20/d423760527/htdocs/cpp/data/meta/quickstats/10_2021 failed
Writing /kunden/homepages/20/d423760527/htdocs/cpp/data/meta/quickstats/10_2021/ip.ser failed
Creating directory /kunden/homepages/20/d423760527/htdocs/cpp/data/meta/quickstats/10_2021 failed
Writing /kunden/homepages/20/d423760527/htdocs/cpp/data/meta/quickstats/10_2021/pages.ser failed
Creating directory /kunden/homepages/20/d423760527/htdocs/cpp/data/meta/quickstats/10_2021 failed
Writing /kunden/homepages/20/d423760527/htdocs/cpp/data/meta/quickstats/10_2021/ua.ser failed
Creating directory /kunden/homepages/20/d423760527/htdocs/cpp/data/meta/quickstats/10_2021 failed
Writing /kunden/homepages/20/d423760527/htdocs/cpp/data/meta/quickstats/10_2021/page_users.ser failed