V
Vijay Kumar R Zanvar
Hi clc,
Please elaborate the warning:
F:\Vijay\C> type unsigned2.c
#include <stdio.h>
#include <stdlib.h>
int
main ( void )
{
unsigned short i = 0;
for ( i = -10; i <= -1; i++ )
printf ("%u\n", i);
return EXIT_SUCCESS;
}
F:\Vijay\C> gcc unsigned2.c -Wall
unsigned2.c: In function `main':
unsigned2.c:10: warning: comparison is always false due to limited range of
data type
Thank You.
Please elaborate the warning:
F:\Vijay\C> type unsigned2.c
#include <stdio.h>
#include <stdlib.h>
int
main ( void )
{
unsigned short i = 0;
for ( i = -10; i <= -1; i++ )
printf ("%u\n", i);
return EXIT_SUCCESS;
}
F:\Vijay\C> gcc unsigned2.c -Wall
unsigned2.c: In function `main':
unsigned2.c:10: warning: comparison is always false due to limited range of
data type
Thank You.