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


Please Help Members By Posting Answers For Below Questions

Explain low-order bytes.

623


How to draw the flowchart for structure programs?

8762


How can type-insensitive macros be created?

700


What is integer constants?

622


Write a function stroverlap that takes (at least) two strings, and concatenates them, but does not duplicate any overlap. You only need to worry about overlaps between the end of the first string and the beginning of the second string. Examples: batman, manonthemoon = batmanonthemoon batmmamaman, mamamanonthemoon = batmmamamanonthemoon bat, man = batman batman, batman = batman batman, menonthemoon = batmanmenonthemoon

1737






What are the advantages of using new operator as compared to the function malloc ()?

758


In which layer of the network datastructure format change is done

1433


Is c is a procedural language?

599


Does free set pointer to null?

563


How to check whether string is a palindrome, WITHOUT USING STRING FUNCTIONS?

15503


How can my program discover the complete pathname to the executable from which it was invoked?

660


Give differences between - new and malloc() , delete and free() ?

612


Linked list is a Linear or non linear explain if linear how it working as a non linear data structures

1763


What does dm mean sexually?

810


Why dont c comments nest?

621