Answer Posted / vignesh1988i
1st :
FUNCTIONS :
these are derived data types
STRUCTURES :
these are user defined datatypes
2nd :
FUNCTIONS :
function returns a value
STRUCTURES :
structures is not a function but only a datatype which returns no value.
3rd :
FUNCTIONS :
function does not have a provision of self referencial pointers.
STRUCTURES :
in this we can make one data member as a pointer to the same structure. that is self referencial structures.
4th :
FUNCTIONS :
function s consists of formal as well as actual arguments.
STRUCTURES :
here structures is a special datatype which holds all the possible form of data (i.e) int, char,float,double ,in combination s.
5th :
FUNCTIONS :
functions are reusable anytime and anywhere in the program, whenever we wann to re-use the code again we can simply call the function.
STRUCTURES :
but in structures we can do as above,we must access the data using '.' or when comes to pointers we must access through '->' operator
this are the statements that to my knowledge can said as difference... BUT STRUCTURES CANNOT BE COMPARED WITH FUNCTION SINCE, TWO ARE INDEPENDENT TO EACH OTHER.
THANK U
| Is This Answer Correct ? | 78 Yes | 18 No |
Post New Answer View All Answers
how to count no of words,characters,lines in a paragraph.
Explain how can a program be made to print the name of a source file where an error occurs?
Explain the Difference between the New and Malloc keyword.
Why main is used in c?
Explain the ternary tree?
How many types of sorting are there in c?
Explain what is wrong with this statement? Myname = ?robin?;
hi, which software companys will take,if d candidate's % is jst 55%?
What are the scope of static variables?
Explain the difference between ++u and u++?
c programs are converted into machine language with the help of a) an interpreter b) a compiler c) an operatinf system d) none of the above
How can I find out how much free space is available on disk?
Explain modulus operator.
What are the 4 types of organizational structures?
What is meant by high-order and low-order bytes?