I want to write a program that finds prime numbers using a sieve of Eratosthenes method.
I must use (variable length array) vom Typ bool.
I wrote the following code, but unfortunately it does not work.
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
int main()
{ int n,i;
printf("Enter the limit: ");
scanf("%d",&n);
int size = sizeof(A)/ sizeof(n);
Comments
Leave a comment