adplus-dvertising
frame-decoration

Question

Under which of the following conditions, the size of an one-dimensional array need not be specified?

a.

when initialization is a part of definition

b.

when it is a declaration

c.

when it is a formal parameter and an actual argument

d.

All of the above

Answer: (d).All of the above

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Under which of the following conditions, the size of an one-dimensional array need not be specified?

Similar Questions

Discover Related MCQs

Q. If a two dimensional array is used as a formal parameter, then

Q. The following program

main()
{
  static char a[3][4] = {"abcd", "mnop", "fghi"};
  putchar(**a);
}

Q. C does no automatic array bound checking. This is

Q. If n has the value 3, then the statement

a [++n] = n++ ;

Q. Choose the statement that best defines an array

Q. Choose the correct statement:

Q. A set of names can be represented as a

Q. If arr is a two dimensional array of 10 rows and 12 columns, then arr (5) logically points to the

Q. While sorting a set of names, representing the names as an array of pointers is preferable to representing the names as a two dimensional array of characters because

Q. Choose the correct statement :

Q. Pick the correct answers
if x is an one dimensional array, then

Q. Choose the correct statement :

Q. A file is preferable to an array of structures because

Q. Consider the declaration

char street[10] = "abcdefghi";

Choose the correct remark(s)

Q. Prior to using a pointer variable it should be

Q. Consider the declaration:

char x[]="WHATIZIT";
char *y="WHATIZIT
";
The output of puts(x) an puts(y) will be

Q. Consider the declarations:

char first (int(*)(char,float));
int second(char,float);

Which of the following function invocation is valid?

Q. In C a pointer variable to an integer can be created by the decalaration

Q. Which of the following is most appropriate?

Q. A pointer variable can be