which datatype to use

how to decide which data type to use by seeing the constraints
eg. if constraint is 1 ≤ n, m ≤ 10^5
can i use int data type for n & m in C language

sure: look at here & here

1 Like

yes …codechef or other proSites uses gcc compiler in which integers are represented using 32 bit unlike turbo C compiler which uses 16 bit.

1 Like