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
double precise = 1.09388641;
In C, you can initialize an array at compile time by specifying its elements within curly braces during declaration. For example, you can declare and initialize an integer array like this: int arr[] = {1, 2, 3, 4, 5};. The size of the array can be omitted, and the compiler will automatically deduce its size based on the number of elements provided. Additionally, you can specify the size explicitly, such as int arr[5] = {1, 2, 3, 4, 5};.
yes
It is not necessary to to declare variables inside the function in C. If you declare a variable inside a function, the variable becomes local for the function and another variable of same name can be declared in any other function, but you can not use the variable declared in other function. When you declare any variable outside the function body then the variable becomes global and can be used in any function of the program. Note: errno is an example for a variable declared outside any function.
Yes.
double precise = 1.09388641;
Declare Real price=49.95 Display "the original price." Input item original price Display "price"
example in C: const int a [] = {10, 20, 40, 80};
to find the factorial we declare a variable n and initialize its value to 1 initiate a loop for example a for loop and multiply the numbers upto 5 code:- for(i=1,n=1;i<=5;i++) { n=n*i; }
no it is not possible
datatype variable name;
A variable declaration is a math or programming term. A variable is an unnamed component. In the problem the wording will declare what the value of the variable is.
you have to give a statement in the following syntax datatype variable;
To declare a double precision variable in Fortran, you can use the "real(kind8)" declaration. This specifies that the variable should be of double precision, which is typically 8 bytes in size.
Yes.
yes
no