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



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

Answer / 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

More Electronics Communications Interview Questions

why should i hire u?

4 Answers   Wipro,


what should i prepare for an airport authority of india's interview for ATC post? I have interview in next week. so, Please help me out.

1 Answers   AAI Airports Authority Of India, ATC,


Slant line with arrow head in NPN & PNP transistor indicate the direction of

22 Answers   HCL, RRB, Wipro,


what are the fiber losses,How to rectify it?

1 Answers  


What is the difference between active and passive filters?

1 Answers  


A PLL maintains lock by comparing A The phase of two signals B The frequency of two signals C The amplitude of two signals D None of these

1 Answers  


How does data transfer takes place between memory and input output ports?

1 Answers  


How to manufacture the cmos inverter?

1 Answers  


What is handover?

1 Answers  


What is aircombining?

1 Answers  


please send the latest sample question paper for the hal online test for electronics stream

1 Answers   HAL,


i am a student i need the technical questions ased in wipro

0 Answers   Infosys,


Categories
  • Civil Engineering Interview Questions Civil Engineering (5086)
  • Mechanical Engineering Interview Questions Mechanical Engineering (4453)
  • Electrical Engineering Interview Questions Electrical Engineering (16638)
  • Electronics Communications Interview Questions Electronics Communications (3918)
  • Chemical Engineering Interview Questions Chemical Engineering (1095)
  • Aeronautical Engineering Interview Questions Aeronautical Engineering (239)
  • Bio Engineering Interview Questions Bio Engineering (96)
  • Metallurgy Interview Questions Metallurgy (361)
  • Industrial Engineering Interview Questions Industrial Engineering (259)
  • Instrumentation Interview Questions Instrumentation (3014)
  • Automobile Engineering Interview Questions Automobile Engineering (332)
  • Mechatronics Engineering Interview Questions Mechatronics Engineering (97)
  • Marine Engineering Interview Questions Marine Engineering (124)
  • Power Plant Engineering Interview Questions Power Plant Engineering (172)
  • Textile Engineering Interview Questions Textile Engineering (575)
  • Production Engineering Interview Questions Production Engineering (25)
  • Satellite Systems Engineering Interview Questions Satellite Systems Engineering (106)
  • Engineering AllOther Interview Questions Engineering AllOther (1379)