write a program to find the number of even integers and odd
integers in a given array in c language
Answer Posted / anshul
#include<stdio.h>
void main()
{
int a[10],i,b;
for(i=0;i<10;i++)
{scanf("%d",&a[i]);
}
printf("enter element to be searched:");
scanf("%d",&b);
for(i=0;i<10;i++)
{
if(a[i]==b)
printf("element found at location %d\n",i);
}
}
include
| Is This Answer Correct ? | 6 Yes | 16 No |
Post New Answer View All Answers
Tell me about low level programming languages.
What is a ternary operator in c?
Does c have circular shift operators?
What is pointers in c?
Under what circumstances does a name clash occur?
Explain heap and queue.
What does %2f mean in c?
What are data structures in c and how to use them?
When should a far pointer be used?
any C program contains only one function, it must be a) void () b) main () c) message () d) abc ()
can we have joblib in a proc ?
What is the use of static variable in c?
What is c value paradox explain?
What are the different types of C instructions?
Can a pointer be null?