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

What is calloc()?

845


What is build process in c?

890


Is that possible to add pointers to each other?

1148


What is volatile keyword in c?

799


What are types of preprocessor in c?

828


I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.

2129


What does the file stdio.h contain?

828


What is use of null pointer in c?

763


What does *p++ do? What does it point to?

834


Explain the concept and use of type void.

879


Declare the structure which contains the following members and write in C list of all students who score more than 75 marks. Roll No, Name, Father Name, Age, City, Marks.

1008


If i have an array 0 to 99 i.e,(Size 100) I place the values 1 to 100 randomly like a[0]=29,a[1]=56 upto array[99].. the values are only between 1 to 100. getting the array values by using scanf.. If i entered one wrong element value line a[56]=108. how can i find it.. and also how to find the missing value in 1 to 100.. and i want to replace the missing values.. any one of them know please post your answer..

1794


What is the data segment that is followed by c?

858


What are the advantages and disadvantages of a heap?

949


How do you declare a variable that will hold string values?

941