Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Explain what does the function toupper() do?

1005


Difference between malloc() and calloc() function?

1130


How do you determine whether to use a stream function or a low-level function?

1080


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

1871


If the size of int data type is two bytes, what is the range of signed int data type?

975


write a c program to find the largest and 2nd largest numbers from the given n numbers without using arrays

2185


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

990


List at least 10 sorting methods indicating their average case complexity, worst case complexity and best case complexity.

2687


Explain what is the best way to comment out a section of code that contains comments?

1096


Explain how can I avoid the abort, retry, fail messages?

989


What is && in c programming?

1111


What is the purpose of main( ) in c language?

1089


Explain what are reserved words?

1040


What does nil mean in c?

1182


Can one function call another?

1050