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

FILE PROGRAMMING

1975


What are pointers really good for, anyway?

797


What do the functions atoi(), itoa() and gcvt() do?

896


What is scanf () in c?

819


code for replace tabs with equivalent number of blanks

1868






an expression contains relational operators, assignment operators, and arithmatic operstors. In the absence of parentheses, they will be evaluated in which of the following order a) assignment, relational, arithematic b) arithematic, relational, assignment c) relational, arithematic, assignment d) assignment, arithematic, relational

1043


What is meant by type casting?

803


Why is void main used?

806


program to find out date after adding 31 days to a date in the month of febraury also consider the leap year

2821


What is the general form of a C program?

764


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

822


Explain how do you search data in a data file using random access method?

881


What is the difference between union and anonymous union?

1013


why wipro wase

2026


Ow can I insert or delete a line (or record) in the middle of a file?

761