A
arunix
hello all;-)
i have a problem here with code.
when i use gcc -Wall -Wextra -ansi -pedantic scnaf_pg.c
then this warning is isuued by the compiler what is this.
i dont know much about C.
Thanks.
warning: ISO C90 forbids mixed declarations and code.
here is the code below.
#include<stdio.h>
#define Lower 1
#define upper 11
int main()
{
int num;
printf("Please Enter Value:- ");
scanf("%d",&num);
int lop,result;
for(lop= Lower; lop!= upper; lop++)
{
result = (lop * num);
printf("%d\n",result);
}
return 0;
}
i have a problem here with code.
when i use gcc -Wall -Wextra -ansi -pedantic scnaf_pg.c
then this warning is isuued by the compiler what is this.
i dont know much about C.
Thanks.
warning: ISO C90 forbids mixed declarations and code.
here is the code below.
#include<stdio.h>
#define Lower 1
#define upper 11
int main()
{
int num;
printf("Please Enter Value:- ");
scanf("%d",&num);
int lop,result;
for(lop= Lower; lop!= upper; lop++)
{
result = (lop * num);
printf("%d\n",result);
}
return 0;
}