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
Explain why C language is procedural?
Is it possible to have a function as a parameter in another function?
Differentiate between static and dynamic modeling.
Explain how do you sort filenames in a directory?
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?
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
Is c is a procedural language?
Explain how do you determine the length of a string value that was stored in a variable?
Which are low level languages?
Explain the process of converting a Tree into a Binary Tree.
Explain built-in function?
What are identifiers c?
What is pivot in c?
What is preprocessor with example?
can any one tel me wt is the question pattern for NIC exam