answersLogoWhite

0


Best Answer

in C: a semicolon in itself. Examples:

1. while (*to++ = *from++);

2. { goto END; ... END:; }

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is null statement?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What is the syntax of the if statement?

clearly:if () orif () else In each case, can be a null statement, a single statement, or a block of statements surrounded by braces, {}.


Can you use conditional operator in cout statement?

Yes, but 'cout' is not a statement! Examples for statements: null-statement, block, expression, if-else, while, do-while, for, continue, switch, break, return.


If null is compared with null what is the result-true or false or null or unknown?

You mean SQL? NULL = anything IS NULL NULL <> anything IS NULL ... NULL IS NULL = TRUE NULL IS NOT NULL = FALSE


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


Null in programming?

in Russian Null means zero. in some languages Null is a macro for zero. in others Null is a single-tone object which referes to the value Null and thus could be compared to other values. Null has many names from nill Nill nil in diffrent languages. most of the time, Null is used to indicate, no value is set to a variable.

Related questions

What is a null hypothesis?

The null hypothesis is the statement that there is no relationship between two observations.


What do you call a statement that determines if the null hypothesis is rejected?

it is called structural resources because it has null as word


What causes hypothesis to be rejected?

We have two types of hypothesis i.e., Null Hypothesis and Alternative Hypothesis. we take null hypothesis as the same statement given in the problem. Alternative hypothesis is the statement that is complementary to null hypothesis. When our calculated value is less than the tabulated value, we accept null hypothesis otherwise we reject null hypothesis.


What is a statement of difference in treatment?

null hypothesis ^^^^right answer for A ls


What is the syntax of the if statement?

clearly:if () orif () else In each case, can be a null statement, a single statement, or a block of statements surrounded by braces, {}.


This new drug have no effect on levels of depression. this is a statement of?

the null hypothesis


What is a statement of difference in experimental treatment?

null hypothesis ^^^^right answer for A ls


What do you call the statement that determines if the null hypothesis is rejected?

The hypothesis test.


What is a statement of no difference experimental treatments?

null hypothesis ^^^^right answer for A ls


What statement is a no difference in experimental treatments?

null hypothesis ^^^^right answer for A ls


What the syntax of for loop in c?

for (<exp1>; <exp2>; <exp3>) <statement> exp1 and exp3 are optional; statement can be null-statement or block-statement. Correction: All expressions are optional. An infinite loop has no expressions: for(;;);


Can you use conditional operator in cout statement?

Yes, but 'cout' is not a statement! Examples for statements: null-statement, block, expression, if-else, while, do-while, for, continue, switch, break, return.