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
Which is better oop or procedural?
What are the 4 data types?
Calculate 1*2*3*____*n using recursive function??
A global variable when referred to in another file is declared as this a) local variable b) external variable c) constant d) pointers
How can I invoke another program (a standalone executable, or an operating system command) from within a c program?
Which is best book for data structures in c?
What is extern keyword in c?
Explain what are linked list?
What is hashing in c language?
If I have a char * variable pointing to the name of a function ..
How can I get the current date or time of day in a c program?
Explain how can I open a file so that other programs can update it at the same time?
What is wrong in this statement?
What are the functions to open and close the file in c language?
Write a program to print numbers from 1 to 100 without using loop in c?