Write a short code using C++ to print out all odd number from 1 to 100 using a for loop?
Submitted by: Muhammadfor( unsigned int i = 1; i < = 100; i++ )
if( i & 0x00000001 )
cout << i << ",";
Submitted by: Muhammad
if( i & 0x00000001 )
cout << i << ",";
Submitted by: Muhammad
Read Online C++ Syntax Job Interview Questions And Answers
Top C++ Syntax Questions
☺ | Explain what are the Sizes and ranges of the Basic C++ data types? |
☺ | What is switch case in C++ Syntax? |
☺ | What OO language is best? |
☺ | What is functions Syntax in C++? |
☺ | What’s the “Software Peter Principle”? |
Top C Plus Plus Language Categories
☺ | C++ Pointers & Functions Interview Questions. |
☺ | C++ Operator Overloading Interview Questions. |
☺ | C++ Exception Handling Interview Questions. |
☺ | C++ Virtual Functions Interview Questions. |
☺ | C++ Template Interview Questions. |