answersLogoWhite

0

What else can I help you with?

Continue Learning about Engineering

Size of a variable without using sizeof operator?

Declare 2 pointer variable of the same type and assign the address of the variable to them and then increment one of them. Find the difference between the above 2 pointers using a type cast. This will be the size of the variable. Eg: double i; double * p = &i; double * q= p; p++; cout<<(int)p-(int)q<<endl;


Declare and initialize 2D array in java using two statements- one to declare variable the other to initialize elements?

I'm not sure what you're asking. Do you mean when you declare/instantiate an array like this? int[][] arr; arr = {{1, 2, 3},{4, 5, 6}}; I think that's right. *********************************** THIS IS INCORRECT because you can assign constant values to array only at time of initialization. Therefore above code will throw an error. Correct way is: int[][] arr = {{1, 2, 3},{4, 5, 6}}; thanx .. itsabhinav123@gmail.com


What is atmospheric distortion?

Moving or variable-temperature air above or inside the telescope which distorts the image.


Use the control variable during the execution of the loop?

Control variable which is used in control structures.e.g. for(int i=0;i


What is variable in c plus plus programming?

You declare a variable by first defining its data type and then its name followed by a semi-colon. Here is an example: int variable; The example above declares an uninitialized integer variable. You can initialize the variable by giving it a value such as "int variable = 1;". It is important to initialize your variables, because you can get errors when executing your program that the variable does not have a value or is uninitialized. Variables that are uninitialized have whatever garbage value happens to be when the program is executed. Here are all of the data types that a variable can be: *int - integer value *char - character value *bool - boolean value

Related Questions

What is a number or variable placed to the right of and above another number variable or expression?

XnThat is an exponent.


What is the variable factor in the above experiment?

The variable factor in an experiment is the factor that can be changed or manipulated to observe its effect on the outcome. It is the independent variable that is intentionally altered by the researcher to study its impact on the dependent variable.


What graph axis does each variable from above go on?

The independent variable typically goes on the x-axis, and the dependent variable goes on the y-axis.


What is the independent variable in the experiment described above in figure 1-1?

The independent variable is the factor that is manipulated or controlled by the researcher to observe its effect on the dependent variable. In figure 1-1, the independent variable is the type of treatment or intervention being administered to the subjects.


What are the regions above or below the optimal range of an environment variable called?

Zones of stress


What does z equal in -29z-13?

In the algebraic expression above z is an unknown variable.


Size of a variable without using sizeof operator?

Declare 2 pointer variable of the same type and assign the address of the variable to them and then increment one of them. Find the difference between the above 2 pointers using a type cast. This will be the size of the variable. Eg: double i; double * p = &i; double * q= p; p++; cout<<(int)p-(int)q<<endl;


Declare and initialize 2D array in java using two statements- one to declare variable the other to initialize elements?

I'm not sure what you're asking. Do you mean when you declare/instantiate an array like this? int[][] arr; arr = {{1, 2, 3},{4, 5, 6}}; I think that's right. *********************************** THIS IS INCORRECT because you can assign constant values to array only at time of initialization. Therefore above code will throw an error. Correct way is: int[][] arr = {{1, 2, 3},{4, 5, 6}}; thanx .. itsabhinav123@gmail.com


What is Total variable costs?

Total variable costs are the sum of expenses which change proportionally as the price of services and goods fluctuate. The total marginal costs above produced units is also referred to as total variable costs.


Why did Roosevelt most likely include biased language in the speech above?

to convince Congress to declare war on Japan


Description of preprocessing and its connection with symbol table manager?

Preprocessing is processing before the main processing. In php (php: hypertext preprocessor) the web server goes through the page and executes the php to generate the HTML page you're about to see. When your web browser processes the web page with it's layout engine, to give you what you see from all that confusing HTML, that's the main processing. e.g. <?php echo "Hello World!"?> outputs 'Hello World!' into the HTML document before it's sent. In programming on source code the preprocessor does about the same thing. It goes through and look for all the preprocessor instructions and executes them on the file. The main processing would be actually compiling the source code. e.g. #define ADOLLAR "$1.00" causes the preprocessor to go through the document and replace all occurrences of ADOLLAR with "$1.00". A table manager is basically a dictionary for the compiler/preprocessor, it holds the symbols and their associated definitions. The preprocessor would go through the document and add the "#DEFINE"s and their values to the symbol table. So after the example above it would look like: ADOLLAR | "$1.00" and the preprocessor would look through the rest of the document looking up all the symbols in the table until it found 'ADOLLAR' then replace it with "$1.00".


What is a variable cost A. office adminidtration B. rent C. building maintenance or D. raw materials?

Raw materials is the only variable cost in the above options.