answersLogoWhite

0

Is the DC inner loop longer than the outer loop?

Updated: 8/18/2019
User Avatar

Wiki User

13y ago

Best Answer

No- the outer loop has to be longer than the inner loop.

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Is the DC inner loop longer than the outer loop?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What are labels in Cpp and can you give some examples?

Labels are used to label the statements that follow for use with goto statements. Labels are user-defined names that follow standard naming conventions, starting in column 1 and ending with a colon (:). They are usually placed on a line of their own but must appear in the same function that contains the goto. Note that a label that has no statements following (the label is the last statement in the function), it must include a semi-colon (;) after the colon (an empty statement). Although many programmers frown upon the use of goto, it is really no different to using return, break or continue to interrupt the normal program flow within a function. However, it's fair to say goto statements are often used quite inappropriately, producing "spaghetti code" that is really quite difficult to follow. In many cases there will be a better alternative to using a goto, however the following example illustrates a correct usage for goto, breaking out of nested compound statements. The functions UseBreak() and UseGoto() both produce exactly the same results, but the goto version is easier to follow as the conditional expression only needs to be evaluated once. Evaluating one goto rather than two breaks is also more efficient. #include <iostream> using namespace std; void UseBreak() { cout<<"UseBreak() executing..."<<endl; int i, j; for(i=0;i<10;++i) { cout<<"Outer loop executing. i="<<i<<endl; for(j=0;j<2;j++) { cout<<"\tInner loop executing. j="<<j<<endl; if(i==3) break; // break out of inner loop. } if(i==3) break; // break out of outer loop. cout<<"\tInner loop finished."<<endl; } cout<<"Outer loop finished."<<endl<<endl; } void UseGoto() { cout<<"UseGoto() executing..."<<endl; int i, j; for(i=0;i<10;++i) { cout<<"Outer loop executing. i="<<i<<endl; for(j=0;j<2;j++) { cout<<"\tInner loop executing. j="<<j<<endl; if(i==3) goto stop; // jump out of both loops. } cout<<"\tInner loop finished."<<endl; } stop: cout<<"Outer loop finished."<<endl<<endl; } int main() { UseBreak(); UseGoto(); return(0); } Output: UseBreak() executing... Outer loop executing. i=0 Inner loop executing. j=0 Inner loop executing. j=1 Inner loop finished. Outer loop executing. i=1 Inner loop executing. j=0 Inner loop executing. j=1 Inner loop finished. Outer loop executing. i=2 Inner loop executing. j=0 Inner loop executing. j=1 Inner loop finished. Outer loop executing. i=3 Inner loop executing. j=0 Outer loop finished. UseGoto() executing... Outer loop executing. i=0 Inner loop executing. j=0 Inner loop executing. j=1 Inner loop finished. Outer loop executing. i=1 Inner loop executing. j=0 Inner loop executing. j=1 Inner loop finished. Outer loop executing. i=2 Inner loop executing. j=0 Inner loop executing. j=1 Inner loop finished. Outer loop executing. i=3 Inner loop executing. j=0 Outer loop finished.


Why are inner planets different than outer planets?

Inner planets. are inner & outer planets. are outer


How does the outer mantle differ from the inner mantle?

the inner mantle is different than the outer mantle because the inner mantle is hotter than the outer mantle.


How do the orbits of the outer planets compare to the inner ones?

The outer planets take much more time and also travel longer to complete a whole orbit around the Sun, than the inner ones.


What four inner planets are larger than the outer planets?

The inner planets are smaller than the outer planets.


How does the outer mantle and the inner mantle differ?

the inner mantle is hotter than the outer mantle.


Which of the outer planets has a surface more similar to the inner planets than to the outer planets?

None of them do. All the outer planets are gas planets while all the inner planets are rocky. You might be thinking of Pluto. It has a solid surface, but it is no longer considered a planet.


Is the outer circle of a track more distance than the inner circle?

The outer circle of a track is longer this is why the starting line is often set at an angle to the outside of the track.


How do the inner planets travel around the sun than the outer planets?

Inner planets travel faster than outer planets


Name the outer planets and describe three feature they share?

The outer planets' names are Jupiter, Saturn, Uranus, Neptune, and Pluto. The 4 outer planets closest to the sun are all known as the gas giants. They all have a longer year than the inner planets. And they all are colder than the inner planets.


Are the inner planets smaller than the outer planets?

yes the inner planets are much smaller then the outer planets


What is more dense inner-core or outer-core?

The inner core is more dense than the outer core.