IS it possible to define a zero sized array in c.if it is
possible how can the elements of that array can be
accessed.array index starts from zero,if it is possible to
define zero sized array how can be its first element can be
accesseed.

Answer Posted / slowdeath

no, it is not possible to define a array with 0 element,
the compiler will show an error message that array must
contain atleast one element

Is This Answer Correct ?    0 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is enumerated data type in c?

849


i = 25;switch (i) {case 25: printf("The value is 25 ");case 30: printf("The value is 30 "); When the above statements are executed the output will be : a) The value is 25 b) The value is 30 c) The value is 25 The value is 30 d) none

830


What are the benefits of c language?

882


How can I ensure that integer arithmetic doesnt overflow?

834


write a program which the o/p should b in such a way that s triangle if I/p is 3,a Square/rectangle if I/P=4,a pentagon if I/P=5 and so on...forget about the I/P which is less than 3

1858


Differentiate between functions getch() and getche().

809


What is the size of a union variable?

794


What is %s and %d in c?

762


What are the disadvantages of external storage class?

805


Write a c program to build a heap method using Pointer to function and pointer to structure ?

4408


how logic is used

1714


What are the different types of endless loops?

835


When should I declare a function?

826


How many types of errors are there in c language? Explain

762


What are the __date__ and __time__ preprocessor commands?

784