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 / k satish kumar reddy

it is not possible to define a zero size array in C. Because
we must declare the size of the array at the time of
declaration. If we declare zero size array like array[0] the
compiler shows an error.

Is This Answer Correct ?    15 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Do you know the difference between malloc() and calloc() function?

616


How can I prevent another program from modifying part of a file that I am modifying?

614


What is pointer and structure in c?

575


In which language linux is written?

605


c program to compute AREA under integral

1811






How would you obtain the current time and difference between two times?

730


How can you convert integers to binary or hexadecimal?

617


What are void pointers in c?

575


Can you tell me how to check whether a linked list is circular?

772


Why do we use stdio h and conio h?

639


Why is sprintf unsafe?

619


What is #include stdlib h?

616


a direct address that identifies a location by means of its displacement from a base address or segment a) absolute address b) relative address c) relative mode d) absolute mode

659


any "C" function by default returns an a) int value b) float value c) char value d) a & b

667


where are auto variables stored? What are the characteristics of an auto variable?

595