Write code for initializing one dimentional and two
dimentional array in a C Program?
Answer Posted / dinesh kumar
static int [5]={2,3,4,5,6};
for one dimensional array
static int[3][3]={1,2,3,4,5,6};
for two dimensional array it consider as rows and columns
| Is This Answer Correct ? | 7 Yes | 12 No |
Post New Answer View All Answers
What is the function of this pointer?
What are # preprocessor operator in c?
What is the difference between #include
Differentiate between a for loop and a while loop? What are it uses?
void main(){ int a; a=1; while(a-->=1) while(a-->=0); printf("%d",a); }
How can I recover the file name given an open stream?
What are the different types of objects used in c?
What is null pointer constant?
Can we assign string to char pointer?
A variable that is defined in a specified portion of a program but can be used throughout the program a) global variable b) local variable c) character d) none
Explain can you assign a different address to an array tag?
Why do we use return in c?
What is the package for freshers(Non IIT) in amazon(hyderabad). And what is the same for those who are a contract employee.
What would the following code segment printint k = 8;docout << "k = " << k << " ";while k++ < 5; a) 13 b) 5 c) 8 d) pointers
Explain what is dynamic data structure?