write a program to find the number of even integers and odd
integers in a given array in c language
Answer Posted / ks djd
#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);
}
}
| Is This Answer Correct ? | 7 Yes | 17 No |
Post New Answer View All Answers
Explain what does the function toupper() do?
Difference between malloc() and calloc() function?
How do you determine whether to use a stream function or a low-level function?
how to capitalise first letter of each word in a given string?
If the size of int data type is two bytes, what is the range of signed int data type?
write a c program to find the largest and 2nd largest numbers from the given n numbers without using arrays
int i[2], j; int *pi;i[0] = 1; i[1] = 5; pi = i; j = *pi + 1 + *(pi + 1)Value of j after execution of the above statements will be a) 7 b) 6 c) 4 d) pointer
List at least 10 sorting methods indicating their average case complexity, worst case complexity and best case complexity.
Explain what is the best way to comment out a section of code that contains comments?
Explain how can I avoid the abort, retry, fail messages?
What is && in c programming?
What is the purpose of main( ) in c language?
Explain what are reserved words?
What does nil mean in c?
Can one function call another?