Program to Print all Even Numbers in an Array using Pointers.
#include<stdio.h> #include<conio.h> main() { int a[10],n,i; printf(“enter size of the array”); scanf(“%d”, ...
https://www.computersprofessor.com/2016/06/program-to-print-all-even-numbers-in.html
#include<stdio.h>
#include<conio.h>
#include<conio.h>
main()
{
int a[10],n,i;
printf(“enter size of the array”);
scanf(“%d”, &n);
printf(“enter the elements”);
for(i=0; i
scanf(“%d”, a[i]);
printf(“even numbers are \n”);
for (i=0; i
{
if (*(a+i)%2==0)
{
printf(“%d\n”, *(a+i));
}
}
getch();
}