answersLogoWhite

0


Want this question answered?

Be notified when an answer is posted

Add your answer:

Earn +20 pts
Q: Why use null symbol last of initial state?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What are the example of null set?

There is only one null set. It is 'the' null set. It is a set which does not contain any numbers. It is represented by the symbol ∅.


What are the example of a null set?

There is only one null set. It is 'the' null set. It is a set which does not contain any numbers. It is represented by the symbol ∅.


What is symbol for null hypothesis?

e (Epsilon)


What is the symbol for invert?

It varies, but the most common is a bar over the symbol (called "null").


What is pointer initialization?

Assigning an initial value to a pointer variable. Example: int *p= NULL;


Delete a node of the last element in the linked list algorithm in java?

To delete the last node of a singly linked list in Java, you can traverse the list and stop at the second-to-last node. Update the next reference of this node to null, effectively removing the last node from the list. This can be done by iterating through the list until reaching the second-to-last node and setting its next reference to null.


Where does the surname Null come from?

The origin of the surname Null is Ireland. There is not a listed meaning for this last name and it first surfaced in the province of Ulster.


What does null mean in banking terms?

Null defines the value in a banking account as zero, no value. Zero or null are used to state the same idea on banking and investment documents.


What is the meaning of nullset?

A null set, also known as an empty set, is a set with no elements. It is denoted by the symbol Ø or { } and is considered a subset of all sets. The cardinality of a null set is zero.


Null means what in bank terms?

Null defines the value in a banking account as zero, no value. Zero or null are used to state the same idea on banking and investment documents.


What is the default initial value for all numeric types?

If they are instance variables the default initial value is 0. If they are method local variables, they are null and must be initialized to some value before they are used


C plus plus program of periodic table?

The Periodic Table Of Elements has a well defined order. The layout can be emulated easily since the arrangement is quite logical.The first step would be to define a struct containing the following members as a minimum:- atomic number (int - number of protons in its nucleus)- symbol (char* - short form of the element name)- name (char* - long form of the element name)i.e.:struct elementinfo {int atomicnumber;char *symbol, *name;};Other members can be added as your program develops.The next step is to arrange the table itself. If you're using Win32 or another graphical system, it's a matter of drawing a box (Win32 would require a MoveToEx() call and four LineTo() calls) and TextOut() (or a related function) for the atomic number and element symbol (centered horizontally and aligned top and bottom respectively).Including conio.h or curses.h would give you the ability to position the cursor and even change the text color, allowing for an alternate "graphical" method.To keep things simple, storing the elements in an array would require something akin to the following:struct elementinfo elementlist[]={{1, "H", "Helium"}, {0, NULL, NULL}, {0, NULL, NULL},{0, NULL, NULL}, {0, NULL, NULL}, {0, NULL, NULL},{0, NULL, NULL}, {0, NULL, NULL}, {0, NULL, NULL},{0, NULL, NULL}, {0, NULL, NULL}, {0, NULL, NULL},{0, NULL, NULL}, {0, NULL, NULL}, {0, NULL, NULL},{0, NULL, NULL}, {0, NULL, NULL}, {2, "He", "Helium"},{-1, NULL, NULL},{3, "Li", "Lithium"}, {4, "Be", "Beryllium"}, {0, NULL, NULL},{0, NULL, NULL}, {0, NULL, NULL}, {0, NULL, NULL},{0, NULL, NULL}, {0, NULL, NULL}, {0, NULL, NULL},{0, NULL, NULL}, {0, NULL, NULL}, {0, NULL, NULL},{5, "B", "Boron"}, {6, "C", "Carbon"}, {7, "N", "Nitrogen"},{8, "O", "Oxygen"}, {9, "F", "Fluorine"}, {10, "Ne", "Neon"},{-1, NULL, NULL},...{-2, NULL, NULL}};In the above array, {0, NULL, NULL} represents a blank displayed for that particular cell, and {-1, NULL, NULL} represents a newline. The {-2, NULL, NULL} signifies the end of the table. The following for() loop would wrap around your display code like so:for (count=0; elementlist[count].atomicnumber!=-2; count++) {if elementlist[count].atomicnumber==-1) {// jump to next line of elements}else {// display current element}}Drawing this graphically, you'd have to keep track of the current cursor (X, Y) position.If you are sending this to stdout or another text stream (i.e. text file), you could draw each line, referencing the array of elements as you go. The list of elements would have to be stored in a nested array: the outermost array contains each line of elements in an array. This would do away with the {-1, NULL, NULL} terminating each line of elements.Extending this code to use classes would be relatively simple, but might only make sense if you were drawing this graphically storing each element as an object.The Lanthanides and Actinides, since they're displayed separately from the main table, would probably have to be stored separately for sake of convenience.Also, as laboratories continue to synthesize (or, on the rare chance, discover) new elements, the layout of the table may change (even drastically) to suit. Thus, the code would have to be altered accordingly.See the related links below for more ideas on how to design a program that displays the Periodic Table of Elements.(Note: Code originally posted was copyrighted. Added to related links.)