adspace


write a program in c++ for finding the given no. is odd or
even without using any airthmatic operater?

Answer Posted / Manraj Singh Gaur

In C++, you can use bitwise operators to determine if a number is odd or even without using arithmetic operators. Here's an example:```n
int number; // replace with your numbern
if (number & 1) cout << "The number is odd.";nelse cout << "The number is even.";"n

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

i need modal Q. paper of junior enjineer for 1/2009 rrb ajmer exam cat no. 11 jell electrical thenkyou

2245


Pls tell me when will coming ssc scientist assistant result...how many marks for elgilibity.. Am a minority girl oc

1517


Sir, Plz send the last 5 yrs ques papers for Railway board's section engineer post. Thanks, c_k_chand@yahoo.co.in

1908


Please give the model or previous year question paper for the lecture post in government Engineering College (Electronics and Communication)

1888


i want the aptitude test papers of wipro can any one help plz

2022


hi... if anybody wrote Airport Authority of India(ATC) examination.... pls kindly post the Questions wat they asked... specially in English & Reasonings.... it will useful to all others who are going to write AAI (Electronics) exam....

2294


will you provide me NTPC exam?

2345


can u send me ttq upto 2008 on my email id pooja_bora18@yahoo.com.sorry for the trouble.

2024


can anyone provide apgenco previous question papers and materials to this id balarajyarajala@gmail.com

2489


last Airforce test paper

2102


can anybody mail the exact sylabuss for ECIL

2203


Explain the approximate cost of the smart pebbles eci-1(embedded corrosion instrument)?

1014


i want to know the syllabus for management trainee exam,vizag steel plant,2009

3584


send me cutoff of surat nit for m.tech

3263


sir/madam, i've applied for the post of section engineer. i shall highly be obliged if you could help me out with some sample papers.

1950