EmbLogic's Blog

warning: decimal constant is unsigned only in ISO C90 [enabled by default]

#include<stdio.h>
int main(void)
{
int i=2147483647;
unsigned int j=4294967295;
printf(“%d %d %d\n”,i,i+1,i+2);
printf(“%u %u %u\n”,j,j+1,j+2);
return 0

}

One Response to warning: decimal constant is unsigned only in ISO C90 [enabled by default]

  1. it just gives the warning that this program will give u error, if u try to run it on compiler of c90 or before …
    now use gcc -Wall “program_name” and run it

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>