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

Explain why C language is procedural?

774


Is it possible to have a function as a parameter in another function?

603


Differentiate between static and dynamic modeling.

623


Explain how do you sort filenames in a directory?

612


Why is not a pointer null after calling free? How unsafe is it to use (assign, compare) a pointer value after it is been freed?

605






a construct the"else" part of "if" statement contains anoth "if else" statement is called a) if-else b) else-if-else c) if-else-if-else d) chain if/if-else-if

707


Is c is a procedural language?

601


Explain how do you determine the length of a string value that was stored in a variable?

672


Which are low level languages?

640


Explain the process of converting a Tree into a Binary Tree.

2109


Explain built-in function?

595


What are identifiers c?

569


What is pivot in c?

570


What is preprocessor with example?

591


can any one tel me wt is the question pattern for NIC exam

1560