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
What is an endless loop?
In which language linux is written?
Can the curly brackets { } be used to enclose a single line of code?
How do you define CONSTANT in C?
What is the main difference between calloc () and malloc ()?
What is %lu in c?
1234554321 1234 4321 123 321 12 21 1 1 12 21 123 321 1234 4321 1234554321
Explain what is the benefit of using enum to declare a constant?
What is the use of void pointer and null pointer in c language?
Why is it important to memset a variable, immediately after allocating memory to it ?
plz let me know how to become a telecom protocol tester. thank you.
What are preprocessor directives in c?
Tell me the use of bit field in c language?
Explain the meaning of keyword 'extern' in a function declaration.
What is call by reference in functions?