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


Please Help Members By Posting Answers For Below Questions

c programs are converted into machine language with the help of a) an interpreter b) a compiler c) an operatinf system d) none of the above

744


What is difference between structure and union?

606


Explain what’s a signal? Explain what do I use signals for?

616


Is using exit() the same as using return?

684


What are near, far and huge pointers?

650






Explain what is the difference between #include and #include 'file' ?

591


Can a variable be both const and volatile?

678


Why do we use main function?

646


What is return type in c?

646


how to capitalise first letter of each word in a given string?

1436


How can you allocate arrays or structures bigger than 64K?

691


What are qualifiers and modifiers c?

555


pierrot's divisor program using c or c++ code

1736


How many loops are there in c?

586


What are enumerated types?

658