what is difference between array and structure?

Answer Posted / shiva

arry is derived data type,
structure is user defined data type

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are integer variable, floating-point variable and character variable?

609


Can static variables be declared in a header file?

614


Explain what is the best way to comment out a section of code that contains comments?

720


Why doesnt this code work?

618


Difference between constant pointer and pointer to a constant.

613






What is string length in c?

609


What is string in c language?

625


write a program to copy the string using switch case?

2401


Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal. [ I gave the obvious solution of taking % 10 and / 10, which gives us the decimal value in reverse order. This requires an array since we need to print it out in the correct order. The interviewer wasn't too pleased and asked me to give a solution which didn't need the array ].

639


Differentiate between #include<...> and #include '...'

617


How can you be sure that a program follows the ANSI C standard?

1127


What is the modulus operator?

736


What are multidimensional arrays?

656


Given two strings S1 and S2. Delete from S2 all those characters which occur in S1 also and finally create a clean S2 with the relevant characters deleted.

835


How can you find the day of the week given the date?

615