The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
x
0 votes
79 views
for(i=10;i<10;++i)

printf("%d"  i&1)

prints

(a) 0101010101

(b) 0111111111

(c) 0000000000

(d) 1111111111
asked in Programming by (181 points)
edited by | 79 views
0

option A given the lop is for(i=0;i<10;++i) and not for(i=10;i<10;++i)

0

I don't think there will be any change in the answer, even if it's given as for(i=0;i<10;i++) //post increment right?

0
absolutely you are right.....otherwise there will be no output.

Please log in or register to answer this question.

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
49,808 questions
54,481 answers
188,251 comments
74,526 users