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
how much salary u want ? why u join in our company? your domain is core sector why u prefer software ?
Is it better to bitshift a value than to multiply by 2?
Explain what is a stream?
How to write a code for reverse of string without using string functions?
How can I make sure that my program is the only one accessing a file?
Differentiate between calloc and malloc.
What is a list in c?
Write a C++ program to generate 10 integer numbers between - 1000 and 1000, then store the summation of the odd positive numbers in variable call it sum_pos, then find the maximum digit in this variable regardless of its digits length.
This is a variation of the call_me function in the previous question:call_me (myvar)int *myvar;{ *myvar += 5; }The correct way to call this function from main() will be a) call_me(myvar) b) call_me(*myvar) c) call_me(&myvar) d) expanded memory
What is C language ?
Explain how can a program be made to print the name of a source file where an error occurs?
What are the functions to open and close the file in c language?
What are the loops in c?
Why do we write return 0 in c?
What is the use of bitwise operator?