Einzelnen Beitrag anzeigen

Benutzerbild von DGL-luke
DGL-luke

Registriert seit: 1. Apr 2005
Ort: Bad Tölz
4.149 Beiträge
 
Delphi 2006 Professional
 
#1

C-Übersetzg: if(!(i%2))

  Alt 26. Apr 2007, 18:30
hallo,

folgendes saumäßiges C-Fragment:

Code:
int i;
...

if(!(i%2))
{

}
ich würd das mal übersetzen mit:

if i mod 2 = 0 then stimmt das?

EDIT: vertippselt.
Lukas Erlacher
Suche Grafiktablett. Spenden/Gebrauchtangebote willkommen.
Gotteskrieger gesucht!
For it is the chief characteristic of the religion of science that it works. - Isaac Asimov, Foundation I, Buch 1
  Mit Zitat antworten Zitat