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 / avtar singh

no it is not possible to define array with size 0 as
compiler shows a compilation error of array must contain
atleast one element;

Is This Answer Correct ?    0 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do shell structures work?

563


What are the two types of functions in c?

562


A SIMPLE PROGRAM OF GRAPHICS AND THEIR OUTPUT I WANT SEE WAHAT OUTOUT OF GRAPHICS PROGRAM

1697


If the size of int data type is two bytes, what is the range of signed int data type?

584


What is the difference between array and pointer?

562






What is the explanation for the dangling pointer in c?

671


What is oops c?

603


How to declare a variable?

565


Is there a way to switch on strings?

610


What is New modifiers?

665


What are the functions to open and close the file in c language?

590


Write a program to find the biggest number of three numbers in c?

588


What is a void pointer in c?

605


What is the size of empty structure in c?

589


I just typed in this program, and it is acting strangely. Can you see anything wrong with it?

559