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...

find a number whether it is even or odd without using any
control structures and relational operators?

Answer Posted / guest

#include<stdio.h>
#include<conio.h>
void main()
{
int x;
if(x%2==0)
printf("even");
else
printf("odd");
getch();
}

Is This Answer Correct ?    4 Yes 25 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Devise a program that inputs a 3 digit number n and finds out whether the number is prime or not. Find out its factors.

1071


FILE PROGRAMMING

2179


Write a function stroverlap that takes (at least) two strings, and concatenates them, but does not duplicate any overlap. You only need to worry about overlaps between the end of the first string and the beginning of the second string. Examples: batman, manonthemoon = batmanonthemoon batmmamaman, mamamanonthemoon = batmmamamanonthemoon bat, man = batman batman, batman = batman batman, menonthemoon = batmanmenonthemoon

2231


What are pointers? Why are they used?

1113


Is multithreading possible in c?

949


What is typedef?

1329


Is it possible to have a function as a parameter in another function?

1038


What are linked lists in c?

1086


Explain high-order bytes.

1061


What is the use of a semicolon (;) at the end of every program statement?

1413


How do c compilers work?

1049


Is fortran faster than c?

983


Explain what are binary trees?

1021


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

1231


What is use of bit field?

1236