while initialization of two dimensional arrays we can
initialize like a[][2] but why not a[2][] is there any
reason behind this?

Answer Posted / subhrajeet sairam mohanty

2 dimension array a[row][col]; in this 'col' indicates size
of block,and 'row' indicates no. of blocks.
Compiler prefer memory unit size first rather no.of memory
units.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the best organizational structure?

875


What is a program flowchart and how does it help in writing a program?

901


Given a valid 24 hour format time find the combination of the value and write a program ,do not hard the value and if any other inputs provided should work with the logic implemented Input: 11:30 Output: 13:10 Input: 18:25 Output: 21:58

1311


What is the best way of making my program efficient?

768


Write a program to swap two numbers without using a temporary variable?

857


Which header file is used for clrscr?

785


What is a keyword?

942


What is sizeof c?

847


If a five digit number is input through the keyboard, write a program to print a new number by adding one to each of its digits.For example if the number that is input is 12391 then the output should be displayed as 23402

3572


Why clrscr is used after variable declaration?

1312


hello freinds next week my interview in reliance,nybody has an idea about it intervew questions..so tell

1954


Explain how can you tell whether two strings are the same?

811


Simplify the program segment if X = B then C ← true else C ← false

2799


shorting algorithmS

2019


What is this infamous null pointer, anyway?

796