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

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

763


What do you mean by invalid pointer arithmetic?

722


What is a stream in c programming?

692


number of times a digit is present in a number

1627


What is the auto keyword good for?

710






What are identifiers c?

682


Explain argument and its types.

700


What is mean by Data Driven framework in QTP? Can any one answer me in details on this regard.

1877


What is this infamous null pointer, anyway?

697


Why we use void main in c?

689


What is the purpose of void in c?

702


How many header files are in c?

641


#include { printf("Hello"); } how compile time affects when we add additional header file .

1519


With the help of using classes, write a program to add two numbers.

723


What does int main () mean?

631