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;
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.
When There is No Need to Change the Values of the Variables In Entire lifetime of That variables then we must use that Variable as Final Variable.
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;
Yes.
no
yes
variable exit within a function and curly braces is local variable int main() { int x; }