What does it mean-a[i]=i+i

Questions by prashant143

Showing Answers 1 - 4 of 4 Answers

kannan

  • Jun 24th, 2006
 

a[i]=i+i;

its just simple... an assignment statement.

an i'th element of array a (i.e.,) a[i] is going to have a value i+i;

eg; lets i=3 means

a[3]=3+3;

a[3]=6;

rajesh

  • Jun 27th, 2006
 

it is an assignment statement , a[i] always stores the double of i value.

let i= 2;

then a[i]=i+i

becomes a[2]=4;

  Was this answer useful?  Yes

divya

  • Jul 6th, 2006
 

yes it is a assignment statement eg :let i=1a[1]=1+1so a[1]=2i=2a[2]=2+2a[2]=4so we get an even series

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.