ionut.hulub Posted February 15, 2012 Report Share Posted February 15, 2012 Se da codul: #include <stdio.h>void main() { unsigned char c = 240; while (c > 16) { c = (((c & 128)>>7) | (c << 1)); } printf("%d", (int)c);}Da sau nu eroare? Daca da, ce eroare? Daca nu, ce afiseaza? Quote Link to comment Share on other sites More sharing options...
aelius Posted February 15, 2012 Report Share Posted February 15, 2012 Nu da nicio "oroare", poate un warning ceva si ar trebui sa printeze "15" Quote Link to comment Share on other sites More sharing options...
adonisslanic Posted February 15, 2012 Report Share Posted February 15, 2012 Afiseaza 15 T_T Quote Link to comment Share on other sites More sharing options...
ionut.hulub Posted February 15, 2012 Author Report Share Posted February 15, 2012 Bravo ati raspuns corect. Quote Link to comment Share on other sites More sharing options...