answersLogoWhite

0

Yes.

int main(void){

int a[10];

int i=0;

while(i<10 && a[i++]=i);

return 0;

}

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

Can arrays be used in for loops?

yes


How can loops be used to process arrays give examples?

How_can_loops_be_used_to_process_arrays


What are the basic parts of the c language?

That would include header files, data types, loops, functions, pointers, arrays


How can loops be used to process arrays?

Loops can be used to iterate or walk through an array. For example, suppose you have an array already initialized (we'll call it "array"): int target = -1; for (i=0; i &lt; array.length(); i++){ if (array[i] = target){ //do something } } Here, we will walk through an array (note that arrays are zero indexed) using a loop to make sure we hit each element of the array. In our loop, we start at the head (or first element) and iterate over each element.


How is one dimensional and two dimensional arrays read and written?

You go through all the elements of an array with a loop - or, in the case of a 2-dimensional array, with two nested loops. If you have a 10-dimensional array, you would use 10 nested loops. In any case, one variable to keep track of the position for each dimension.


What is a description of how to do k2togtbl and p2togtbl for knitting a sweater?

Knit two together through the back loops and Purl two together through the back loops


Name two smaller arrays you can use to find the product of 8x6?

name two smaller arrays you can use to find the product


What are loops on garageband?

Garageband Loops are prerecorded instrumental sections for you to use in your projects. You can find them in Library&lt;Audio&lt;Apple Loops&lt;Apple&lt;Apple Loops for GarageBand


Why do you use antenna arrays?

To improve the signal :)


How do you get more loops for pro tools se?

Purchase them. One of the services I use is mvp loops.


How do you use looping in a sentence?

The rollercoaster had 3 loops in it. I tied my shoe lace loops together to double knot my shoes. After aking that pain medication, I began to feel loopy. ~Hayley :)


C programs using loops?

Loops are very important part of a C-language. If we have to run our programe multiple time then we use Loops of C.