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
What does %d do?
If a variable is a pointer to a structure, then which operator is used to access data members of the structure through the pointer variable?
Can a variable be both constant and volatile?
The number of measuring units from an arbitarary starting point in a record,area,or control block to some other point a) recording pointer b) offset c) branching d) none
main(){char *str;scanf("%s",str);printf("%s",str); }The error in the above program is: a) Variable 'str' is not initialised b) Format control for a string is not %s c) Parameter to scanf is passed by value. It should be an address d) none
What is the use of in c?
Explain what is a const pointer?
What is %d called in c?
What does 4d mean in c?
Give differences between - new and malloc() , delete and free() ?
Do you know pointer in c?
What are c identifiers?
How can I dynamically allocate arrays?
what does static variable mean?
What are shell structures used for?