• edited ago by
21 views
1 1 vote

Which of the following is a valid declaration for a $2\mathrm{D}$ array in C?

  1. int a[] []= {{1,2}, {3,4}};
    
  2. int a[2,2] = {{1,2}, {3,4}};
    
  3. array a[2][2]={{1,2},{3,4}};
    
  4. int a[2][2] = {{1,2}, {3,4}};
    

Please log in or register to answer this question.

Position:
Show:

Related questions

1 1 vote
0 0 answers
22
22 views
Shubham Sharma 2 asked Sep 15
22 views
What is the initial value of top in an empty stack implemented using an array?$0$$-1$$1$Depends on stack size
0 0 votes
0 0 answers
14
14 views
Shubham Sharma 2 asked Sep 15
14 views
A banking transaction commits successfully, but a system crash occurs immediately afterward. Which mechanism ensures durability?LockingPartial commitTransaction isolation...
0 0 votes
0 0 answers
17
17 views
Shubham Sharma 2 asked Sep 15
17 views
Consider a finite state transducer (FST) with $Q=\left\{q_{0}, q_{1}\right\}, \Sigma=\{0,1\}, \Gamma=\{a, b$, $\mathrm{c}\}$, initial state $\mathrm{q}_{0}$, and the foll...
1 1 vote
0 0 answers
15
15 views
Shubham Sharma 2 asked Sep 15
15 views
In a memory system with fixed-sized partitions, each holding one process (as in IBM OS$/360$ MFT).Which statement is correct?Multiprogramming limited; internal fragmentat...