long integer problem
Posted
by hopefulLLl
on Stack Overflow
See other posts from Stack Overflow
or by hopefulLLl
Published on 2010-03-21T11:35:09Z
Indexed on
2010/03/21
11:41 UTC
Read the original article
Hit count: 315
c
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..
© Stack Overflow or respective owner