Interviewer And Interviewee Guide

C++ Syntax Interview Question:

Write a short code using C++ to print out all odd number from 1 to 100 using a for loop?

Submitted by: Muhammad
for( unsigned int i = 1; i < = 100; i++ )
if( i & 0x00000001 )
cout << i << ",";
Submitted by: Muhammad

Read Online C++ Syntax Job Interview Questions And Answers
Copyright 2007-2025 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.

Interview Questions Answers .ORG