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 output of printf("Hello World"-'A'+'B'); ?

1488


Create a simple code fragment that will swap the values of two variables num1 and num2.

1284


Is stack a keyword in c?

1078


What are the similarities between c and c++?

1065


Is c a great language, or what?

1106


What are logical errors and how does it differ from syntax errors?

1293


Explain how are 16- and 32-bit numbers stored?

1264


Does c have an equivalent to pascals with statement?

995


Find MAXIMUM of three distinct integers using a single C statement

1058


What would happen to X in this expression: X += 15; (assuming the value of X is 5)

1948


#include int main(){ int i=10; int *ptr=&i; *ptr=(int *)20; printf("%d",i); return 0; } Output: 20 can anyone explain how came the output is 20

1717


how can use subset in c program and give more example

1989


What is wrong with this program statement?

1031


There seem to be a few missing operators ..

1047


Explain what happens if you free a pointer twice?

1074