answersLogoWhite

0


Best Answer

// 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

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Declare a one-dimensional array 'num' of type int and a two-dimensional array 'matrix' of type float digrammatically explain those arrays?
Write your answer...
Submit
Still have questions?
magnify glass
imp
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 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 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.


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 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.


What Latin verb that begins with e?

There are thousands of words in Italian starting with E ! Emotivo, Emozione, Etero, Enfasi, Elefante ........... Try to explain better what you need to know please.


What was the main purpose of th Declaration of Independence?

The purpose of the Declaration of Independence was to declare independence from Great Britain and declare the United States of America a separate country. Signed on July 4, 1776, it is one of the most important documents in the history of the United States


Key reason for the Declaration of Independence?

Well the main reason for writing the Declaration of Independence was to do exactly what it says, declare their independence from Great Britain. But there were many other reasons, among them being they were being wrongfully, extravagantly taxed for common goods without proper representation in the British Parliament. And because they had no representation in Parliament, they were powerless. That was one huge reason.