what is the use of a array in c

Answer Posted / rohit v.kamlakar

An array is a collection of similar elements(data types).
These similar elements could be all ints, or all floats, or
all chars, etc.
In an array all elements must e of same types.

In simple language, Arrays are used to give 'one' variable
the power to hold 'more than 1' values.

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of realloc()?

661


What is a stream in c programming?

584


Can you subtract pointers from each other? Why would you?

552


Why can’t we compare structures?

801


What does a derived class inherit from a base class a) Only the Public members of the base class b) Only the Protected members of the base class c) Both the Public and the Protected members of the base class d) .c file

654






How can I dynamically allocate arrays?

583


How can I swap two values without using a temporary?

606


What is character set?

676


What tq means in chat?

573


What are the scope of static variables?

595


Is javascript based on c?

588


What is a MAC Address?

622


hi folks i m approching for h1 b interview on monday 8th of august at montreal and i m having little problem in my approval notice abt my bithdate my employer has made a mistake while applying it is 12th january and istead of that he had done 18 the of january do any body have any solution for that if yes how can i prove my visa officer abt my real birthdate it urgent please let me know guys thaks dipesh patel

1406


How do c compilers work?

602


main use of recursive function a) processing speed high b) reduce program length/reduce repeated statements c) if you do not, use iterative methods like, for, while or do-while d) all the above

608