difference between function & structure

Answer Posted / s.s gill

function: in function we can have different data types and can perform different operation according to our need. a function once created can be called anytime in given program.

Structure: in structure we can only assign data types to different variables that are to be used in our program. we cannot perform any operation inside a structure.

this is the major difference between function and structure

Is This Answer Correct ?    2 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

if the area was hit by a virus and so the decrease in the population because of death was x/3 and the migration from other places increased a population by 2x then annually it had so many ppl. find our the population in the starting.

4488


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

612


Is null equal to 0 in sql?

644


Why we use void main in c?

590


Can we compile a program without main() function?

628






What is #line in c?

559


which type of aspect you want from the student.

1701


Write an algorithm for implementing insertion and deletion operations in a singly linked list using arrays ?

3051


The __________ attribute is used to announce variables based on definitions of columns in a table?

669


When was c language developed?

697


What is function prototype in c with example?

570


What are types of structure?

600


in linking some of os executables are linking name some of them

1647


What is the difference between Printf(..) and sprint(...) ?

780


What type is sizeof?

580