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);
The answer to the question is available in the PDF file https://www.assignmentexpert.com/https://www.assignmentexpert.com/homework-answers/programming-answer-84201.pdf
Comments
Leave a comment