what is difference between array and structure?

Answer Posted / siddharth kothari

An array behaves like a built-in data type. All we have to
do is to declare an array variable and use it. But in the
case of a structure, first we have to design and declare a
data structure before the variables of that type are
declared and used

Is This Answer Correct ?    44 Yes 15 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Study the following C program :call_me (myvar)int myvar;{ myvar +- 5; }main(){int myvar;myvar = 3;call_me(myvar);printf("%d ",myvar);What will be printed a) 3 b) 5 c) 8 d) symbol

667


How variables are declared in c?

573


What are keywords in c with examples?

605


What is meant by realloc()?

679


#define f(g,h) g##h main O int i=0 int var=100 ; print f ("%d"f(var,10));} wat would be the output??

1544






What is pragma c?

615


#include show(int t,va_list ptr1) { int a,x,i; a=va_arg(ptr1,int) printf(" %d",a) } display(char) { int x; listptr; va_star(otr,s); n=va_arg(ptr,int); show(x,ptr); } main() { display("hello",4,12,13,14,44); }

773


What does 3 mean in texting?

617


Write a program to print "hello world" without using a semicolon?

598


how to count no of words,characters,lines in a paragraph.

3907


#include #include struct stu { int i; char j; }; union uni { int i; char j; }; void main() { int j,k; clrscr(); struct stu s; j=sizeof(s); printf("%d",j); union uni u; k=sizeof(u); printf("%d",k); getch(); } what is value of j and k.

5210


How can I send mail from within a c program?

582


p*=(++q)++*--p when p=q=1 while(q<=6)

1268


What is the modulus operator?

736


Can we change the value of constant variable in c?

579