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
When reallocating memory if any other pointers point into the same piece of memory do you have to readjust these other pointers or do they get readjusted automatically?
What are qualifiers and modifiers c?
Are the expressions * ptr ++ and ++ * ptr same?
Is exit(status) truly equivalent to returning the same status from main?
What is action and transformation in spark?
Can you please explain the difference between strcpy() and memcpy() function?
Why do some versions of toupper act strangely if given an upper-case letter?
Why is sizeof () an operator and not a function?
Is using exit() the same as using return?
What are the keywords in c?
Q.1 write a program to create binary tree 1 to 16 numbers? Q.2 write a program to creat a binary search tree for the member that is given by user?
what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;
Can you assign a different address to an array tag?
The file stdio.h, what does it contain?
How do you list a file’s date and time?