write a program to count the number of elements in an array

write a program to count the number of elements in an array whose bits three, four and seven are zeroes. the array has 12 elements , each element is 8 bit and is stored in memory location starting from $900. you code should start from $C000. include an algorithm or flow chart with your code. please show work
thank you

Solution

#include<stdio.h>
#include<stdlib.h>
void prntRep(int ardf[], int size)
{
int i, j;
printf(\" Repeating elements are \");
for(i = 0; i < size; i++)
for(j = i+1; j < size; j++)
if(ardf[i] == ardf[j])
printf(\" %d \", ardf[i]);
}   

int main()
{
int ardf[] = {4, 2, 4, 5, 2, 3, 1};
int ar_sz = sizeof(ardf)/sizeof(ardf[0]);
prntRep(ardf, ar_sz);
getchar();
return 0;
}

write a program to count the number of elements in an array whose bits three, four and seven are zeroes. the array has 12 elements , each element is 8 bit and i

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site