What is the operation of delete in stack?
Delete is mostly commonly known as pop in stack. The last element inserted into the stack is removed from the stack. Here is an illustration:
Consider the stack with the elements 1,2,3,4 inserted in order.
1->2->3->4
\
top
The top of the stack will be pointing to 4. When pop operation is performed, 4 is removed from the stack and the top is made to point to 3. The stack then becomes:
1->2->3
\
top
Explain how can XML used in web page design to carry data?
You can use xml tags to enclose data and carry it over the web onto web pages and display. Lets say you have an xml of courses and you wnat to show it, you would have data like course title, course description etc, you simply create your tags in xml like <course titile> put your course title here</course title> and so on, the resulting xml file (containing your data) could be easily displayed over the internet.
What is the difference between a variable and a constant in computer programming?
a constant remains fixed with any kind if change in variation or the quantity whearas variables vary with certain quantities
a variable is al location in a memory which holds a piece of data ,it can be represented by anything apart from numbers.whearas
a constant can be any numbers or characters
if we talk in refernce with C Language:
How do you convert a decimal number to a binary number?
First, realize that instead of one's, ten's, hundred's, thousand's etc. places you find in decimal, a binary number has a one's, two's, four's, eight's, sixteen's etc. places.
Start at the one's place. If there is a one here start with one.
Move to the left, whenever there is a one, add the corresponding place value to your total until you've reached the leftmost digit.
Example:
Convert 1011011001 in binary to decimal:
=1(1)+0(2)+0(4)+1(8)+1(16)+0(32)+1(64)+1(128)+0(256)+1(512)=729
Notice the bolded digits are the same in the original from right to left.
The italicized numbers are the appropriate powers of 2.
Binary numbers start with a column with the value of 1 on the right side. The next column, to the left, has double the value (which is 2), the next left doubles again (which is 4), then 8, 16, 32, 64, 128 etc. The inclusion of a number 1 in a column means that the number should be included in the total. The inclusion of a zero in a column means that the number should not be counted. Using just this combination of 1s and 0s any number can be represented. For example...
1 = 1
2 = 10
3 = 11
4 = 100
10 = 1010
15 = 1111
65 = 1000001
What is the difference between a macro and typedef?
A Macro is a preprocessor directive means that before compilation the macros are replaced. Where as typedef is defining a new data type which is same as the existing data type. Syntax: typedef Existing datatype New datatype For example typedef int NUMBER; Here NUMBER (New datatype)is defined as a data type which contains the properties same as int(Existing datatype). You can declare a variable of int as NUMBER a; is same as int a; similarly typedef int* NUMBERPOINTER; NUMBERPOINTER a; Here a is a pointer of integer type.
The receiving nodes data link layer requests a retransmission.
Make a pascal using c plus plus?
Please make your question more clear. Qhat do you want to do? Rewrite the programming language Pascal? Convert c++ code to Pascal? Create a Pascal triangle? Make a baby son that's called Pascal? (btw, that last thing has to be done in hardware)
Minecraft Concrete | The easiest recipe in 2021
How to make Minecraft Concrete? Within this step-by-step process, we’ll show you how-to readily craft Concrete Powder in several different colors and turn it into hardened Concrete.
Minecraft Concrete
Learn how-to create Concrete in Minecraft in many different colours with our easy to follow guide! Within this step-by-step process, we’ll show you how-to readily craft Concrete Powder in several different colours and turn it into hardened Concrete.
How-to Craft Concrete
that can add a fantastic look for any Minecraft undertaking. Available in a large number of colour choices, Concrete will not burst into flame like Wool. Concrete blocks also have hardiness slightly higher than that of Stone, but they also have a decrease blast resistance.
Step 1: Choose Your Dye
Before we could even begin to craft some Concrete, then we need to decide what colour to create. Concrete can be some of the sixteen possible Dye options in Minecraft: crimson, orange, yellow, green, lime, cyan, light blue, blue, purple, magenta, pink, brown, black, grey, light grey, or white. Someone can obtain the dye through crafting, smelting, or even trading.
Measure 2: Craft Concrete Powder
To start, we’ll need to create some Concrete Powder. You can craft Concrete Powder at a Crafting Table with four blocks of sand, four cubes of gravel, and one dye of any colour. Unlike most crafting recipes, Concrete Powder requires putting each element in any of the nine squares in almost any purchase. Below is only 1 example!
Step 3: Spinning Concrete Powder Into Concrete
You can do it with a supply block or flowing water. We place the Concrete Powder alongside water, and it’s currently hardened Concrete!
Additional Information
Crafting Concrete needs a pickaxe or the block is going to be lost.
Similar to Sand and Gravel, Concrete Powder will comply with gravity and collapse if there is not anything below. Conversely, Concrete that has been hardened acts like any other good block and will not fall when placed with nothing down.
What is the best way to collect 250 heaps of red Concrete in Minecraft 1.12.2?
There are ways to automate this. But they are not pretty, as they involve ensuring the block is being pushed by a piston to guarantee a 100% drop rate throughout a TNT blast. Unless you’re going to automate the process thoroughly, you are better off placing the Concrete in your offhand. You need to find some water to turn the powdered Concrete into concrete cubes.
And breaking it with a choice by holding the two mouse buttons while having a dispenser feed you other Powder. Now and then you can pick up the littered remains, so you do not lose them.
Maybe 250 piles are sufficient for you to look at constructing a machine to help automate the procedure. Mumbo Jumbo’s copied a couple of designs from the specialized Minecraft players who should work- substitute for the TNT duper with one that functions in 1.12.
The best way to craft White Concrete Powder in Minecraft Survival Mode
First, start your crafting table, so You have the 3×3 crafting grid.
Add Items to create White Concrete Powder.
In the crafting menu, you need to see a crafting area that resembles a3x3 crafting grid. To make white concrete powder, place four sand, 4 1 and gravel white dye at the 3×3 crafting grid.
When creating white concrete powder, then it is essential that the sand, gravel and white dye set in the exact pattern as the image below. From the first row, there should be one white ribbon at the first box, one sand in the next box, and one sand from the following box.
The second row
In the second row, then there should be one sand in the first box and at the second box, and one gravel at the next box. From the next row, there should be three gravel. It is the Minecraft crafting recipe for white concrete powder.
Now you’ve filled the crafting region with the correct pattern. The white cement powder will appear in the box to the right.
Once you have crafted white concrete powder, you need to transfer the new item to your inventory.
Transfer the White Concrete Powder to Inventory
Congratulations, you’ve made white concrete powder Minecraft!
First, start your crafting table so that you possess the 3×3 crafting grid.
Why you need convert a expression into postfix expression?
You convert an (infix) expression into a postfix expression as part of the process of generating code to evaluate that expression.
What is expression syntax error?
A syntax error is a coding error that prevents successful compilation.
Examples:
const int a = 42;
void foo (int);
void bar (int);
void foo () {
// syntax error: definition does not match prototype declaration
// reason: formal argument not defined
// solution: define formal argument
}
void bar (int b) {
if (a = b) {
// syntax error in expression: a = b
// reason: a is declared constant, cannot assign to constants outside of declaration
// solution: did you really mean a == b?
}
}
int main () {
// syntax error
// reason: return statement not found
// solution: return a value to host environment
}
Can a function be inside another function in Roblox Lua?
This is not Python, nor C.
Lua is different...
How do you use bgi graphics of c plus plus on tft screen?
TFT or CRT doesn't make difference in using BGI graphics.
yes
Find out the largest among four integer values?
A bulk (slurry) polymerisation reactor which is made of a closed long tube through which the slurry is circulated. Loop reactors are characterised by a very narrow residence time distribution, leading to uniform product characteristics.
Analysis of an algorithm means prediction of how fast the algorithm works based on the problem size. It is necesary to analyze an algorithm so that, if we have n no Of algorithms then the fastest and 1 with less time & space complexity can selected. Which will allow and ensure maximum utilization of available resourses.
What is the similar property between dynamic programming and greedy approach?
Both are using Optimal substructure , that is if an optimal solution to the problem contains optimal solutions to the sub-problems
Which group of women worked as control tower operators radio operators and mechanics?
women's army corps (wpa)
What is orthogonality in a programming language?
In computer programming, orthogonality in a programming language means that a relatively small set of primitive constructs can be combined in a relatively small number of ways to build the control and data structures of the language. The term is most-frequently used regarding assembly instruction sets, as orthogonal instruction set.
Write an algorithm to insert an item to a given location in sorted array?
To insert a number N into array A at index I:
// Resize A if necessary
If A is too small to add a new element then
resize A
// Right-shift all elements starting from position I
For i = A.length to I
A[i] = A[i - 1]
// Insert new item
A[I] = N
Which programming language used by yahoo?
Probably a multitude of things, just what fits the job. For instance, they can use C++ for their core applications, and Java for the layers around the core.
How many data types are supported by c?
The fundamental types of C:
A Boolean type: bool
A character type: char
An integer type: int
A floating-point type: float, double and long double
No type: void
The character and integer types can be modified using the signed/unsigned and short/long type modifiers. If no type is specified with a modifier, int is assumed. E.g., a short implies a short int.
In addition, a user can define additional types:
Data structures: e.g., struct and union
Enumeration types: enum
Also, for any given type, T, a user can define other types using declarator operators:
A pointer type: T*
An array type: T[]
The Boolean, character and integer types are collectively called integral types. The integral and floating-point types are collectively called arithmetic types. Fundamental types, pointers and arrays are collectively called built-in types. Enumerations and data structures are called user-defined types. Note that all user-defined types must be declared by the user before they can be used, whereas all built-in types are available for use without prior declaration.
The integral and floating point types are provided in a variety of sizes to give the programmer a choice of the amount of storage consumed, the precision and the range available for computations. The assumption is that a computer provides bytes for holding characters, words for holding and computing integer values, some entity for floating-point computation and addresses for referring to all these entities. The fundamental types together with pointers and arrays present these machine-level notions to the programmer in a reasonably implementation-independent manner.
For most applications, we could use bool for logical values, char for characters, int for integer values, and double for floating point values. The remaining fundamental types are variations for optimisations, special needs and compatibility that are best ignored until such needs arise.
Example:
int x; -- integer
int *px= &x; -- pointer to integer
int **ppx= &px; -- pointer to pointer to integer
int ***pppx= &ppx; -- pointer to pointer to pointer to integer