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
Differentiate between Macro and ordinary definition.
regarding pointers concept
When is a void pointer used?
Write a code to generate a series where the next element is the sum of last k terms.
What is the use of header?
How would you use the functions fseek(), freed(), fwrite() and ftell()?
Did c have any year 2000 problems?
Define macros.
What is array in c with example?
How can you find the day of the week given the date?
What oops means?
How do you list files in a directory?
What are the two types of structure?
What are structure types in C?
How do I copy files?