answersLogoWhite

0

// one dimensional array 'num' of type int...

int num[100];

{Sorry, diagrams are not possible in wiki.answers.com, you have to use words}

This is 100 copies of an integer data type, arranged sequentially in memory. The first one is called num[0], the tenth one is called num[9], and the 100th one is called num[99].

// two dimensional array 'matrix' of type float...

float matrix[10][20];

This is 200 copies of a floating point data type, arranged sequentially in memory. The first one is called matrix[0][0], the tenth one is called matrix[9][0], the eleventh one is called matrix[0][1], and the 200th one is called matrix[9][19].

In both cases, you don't want to "think" about the arrangement of bits and bytes within each int or float. Doing so is non-portable, and can lead to problems down the road. The only safe thing you can consider is the arrangement in memory of the copies of the fundamental type int or float.

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

What does delclarative mean?

serving to declare, make known or explain.


What are antonyms of the word infer?

misunderstand announce declare explain proclaim elucidate describe delineate


What was the purpose of the Declaration of Independence .?

The purpose of the Declaration of Independence was to explain why the colonies needed to separate from Britain. To declare Independence from England.


What was purpose of the declaration of independence?

The purpose of the Declaration of Independence was to explain why the colonies needed to separate from Britain. To declare Independence from England.


Why did the colonist believe they needed to explain their theory of government in order to justify their decision to declare independence?

We went to war for freedom. The colonist wanted independence.


How do you declare someone mentally incompetent in ark?

You, as an indiviaul, cannot declare someone incompetent. You must present a petition to the court and present proof that the individual is incapable of handling their own affairs. You need to arrange a consultation with an attorney who can discuss all the details and explain your options.You, as an indiviaul, cannot declare someone incompetent. You must present a petition to the court and present proof that the individual is incapable of handling their own affairs. You need to arrange a consultation with an attorney who can discuss all the details and explain your options.You, as an indiviaul, cannot declare someone incompetent. You must present a petition to the court and present proof that the individual is incapable of handling their own affairs. You need to arrange a consultation with an attorney who can discuss all the details and explain your options.You, as an indiviaul, cannot declare someone incompetent. You must present a petition to the court and present proof that the individual is incapable of handling their own affairs. You need to arrange a consultation with an attorney who can discuss all the details and explain your options.


Can only the president can declare war true or false explain why?

The President of the United States can not declare a war, this power was given to Congress in Article 1, Section 8 of the U.S. Constitution. The President has the ability to commit troops to action via the War Powers Act.


What happens if I declare more than 10,000 at customs?

If you declare more than 10,000 at customs, you may be required to fill out additional forms and provide documentation to explain the source of the money. Failure to declare amounts over 10,000 can result in fines, seizure of the money, or legal consequences. It is important to be honest and transparent when going through customs to avoid any issues.


Why did they make the Declaration of Independence?

The Declaration of Independence was made to declare the American colonies' independence from British rule and to explain the reasons for seeking independence, including grievances against the British government.


What was The main purpose of the Declaration of Independence was to?

State the reasons for the American Revolution


What is the purpose of Jefferson's introduction to the Declaration of Independence?

The purpose of the Declaration of Independence was to explain why the colonies needed to separate from Britain. To declare Independence from England.


Can you explain the process of declaring food items to the US Customs when entering the country"?

When entering the US, travelers must declare all food items to Customs. This involves filling out a declaration form and presenting it to an officer. The officer may inspect the items and determine if they are allowed into the country. Failure to declare food items can result in fines or confiscation.