Hey i got the same error in my code and as discussed i cant rectify it after changing the u value. The error is on a linux machine. The program checks if a no is prime or not.
#include<stdio.h>
int primality(int n)
{
int i;
char ch='y';
for(i=2;i<n;i++)
{
if(n%i==0)
ch='n';
}
printf("%s",ch);
return 0;
}
int main()
{
int u=10;
primality(u);
return 0;
}