What is the default size allocated for array in the
statement if size not specified
" int a[] "

Answers were Sorted based on User's Feedback



What is the default size allocated for array in the statement if size not specified " int a[..

Answer / tarun shedhani

It will result into an error saying "size of a is unknown or
zero"

Is This Answer Correct ?    45 Yes 6 No

What is the default size allocated for array in the statement if size not specified " int a[..

Answer / tarun shedhani

It will result into an error saying "size of a is unknown or
zero"

Is This Answer Correct ?    21 Yes 6 No

What is the default size allocated for array in the statement if size not specified " int a[..

Answer / nitish sahu

array is an user defined data type its default size is 2.

Is This Answer Correct ?    15 Yes 4 No

What is the default size allocated for array in the statement if size not specified " int a[..

Answer / karthik

BUT int a[]={0};
this will work

Is This Answer Correct ?    9 Yes 2 No

Post New Answer

More OOPS Interview Questions

how to swap to variables without using thrid variable in java?

5 Answers  


what is the definition of incapsulation

2 Answers  


What is encapsulation and abstraction? How are they implemented in C++?

0 Answers   Agilent, ZS Associates,


Program to read a comment string

1 Answers   IBM,


why the argument is passed by reference to a copy constructor?example?

2 Answers  


What do you mean by overloading?

0 Answers  


What is abstraction oop?

0 Answers  


Why do we use polymorphism?

0 Answers  


what is data hiding.

3 Answers   Wipro,


Why do we use inheritance?

0 Answers  


What is the difference between and interface and an abstract class ?

4 Answers   IBM, Infosys, Ness Technologies,


what is object slicing

3 Answers   TCS,


Categories