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 associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;
What is the purpose of void pointer?
How is null defined in c?
What is s or c?
Explain built-in function?
How can you avoid including a header more than once?
How to declare pointer variables?
Explain how can type-insensitive macros be created?
What are preprocessor directives in c?
What is int main () in c?
Can I initialize unions?
What functions are used for dynamic memory allocation in c language?
When can a far pointer be used?
How many keywords (reserve words) are in c?
Can we add pointers together?