PDA

View Full Version : [SOLVED] C Programming -Data types



flaymond
January 12th, 2015, 12:50 PM
Hello, I'm in process to learning C...I actually wanna understand what is data types deeply..I'm confused which data type (int, float, double, long) should I use in i686 machine (32-bit)...I'm sometimes get an error in memory allocations...I really confused...Example - long int x = 500000000; printf("%ld", x);It will need to compiled with standard c99 command in my machine....I'm very confused...which should I use for how much digits/characters? and why sometime it will not compile? Thanks.

ofnuts
January 12th, 2015, 05:14 PM
Seen this (http://en.wikipedia.org/wiki/Data_type)?

flaymond
January 14th, 2015, 08:59 AM
Thanks!