n1ckooo Posted October 20, 2009 at 08:17 PM Report Share #292598 Posted October 20, 2009 at 08:17 PM Os uma variável inteira, (INT) quantos numeros de bytes pode ter? E já agora qual a diferença entre tipos inteiros programando em Windows e programando em linux?Se é que existe diferença. Obrigado Link to comment Share on other sites More sharing options...
Baderous Posted October 20, 2009 at 08:35 PM Report Share #292602 Posted October 20, 2009 at 08:35 PM Fazes isto: printf("%d bytes",sizeof(int)); Link to comment Share on other sites More sharing options...
n1ckooo Posted October 20, 2009 at 09:18 PM Author Report Share #292611 Posted October 20, 2009 at 09:18 PM sim isso eu sei, o meu processador é 32 bits e ao fazer isso da 4bytes, se tivesse um processador com 64bits daria na mesma os 4bytes? E se fosse em linux? estas sao as minha duvidas. Link to comment Share on other sites More sharing options...
fnds Posted October 20, 2009 at 09:51 PM Report Share #292615 Posted October 20, 2009 at 09:51 PM Compila em cada uma dessas plataformas e logo vez. Link to comment Share on other sites More sharing options...
n1ckooo Posted October 20, 2009 at 10:20 PM Author Report Share #292625 Posted October 20, 2009 at 10:20 PM O problema é que não tenho essa plataformas, nem meios como o fazer. obrigado na mesma. Link to comment Share on other sites More sharing options...
Baderous Posted October 21, 2009 at 10:36 AM Report Share #292662 Posted October 21, 2009 at 10:36 AM http://en.wikipedia.org/wiki/C_variable_types_and_declarations#Size http://en.wikipedia.org/wiki/64-bit#Specific_data_models Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now