long integer problem
- by hopefulLLl
hello friends,,
m a beginner at c language..
m using turbo c ++ compiler 16 bit.
nw the max answer obtained by me is aaround 32000..
nw if i want a number larger that that then i use long int..
if i execute the following programme..
#include <stdio.h>
void main()
{
long int x;
x=40000;
printf("%d", x);
}
then i get error that constant value is long in function main()..
kindly tell me how to get an answer more that 32000 by getting rid of this error!
thnx..