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
Explain about the functions strcat() and strcmp()?
What is structure in c language?
How do you list a file’s date and time?
Is exit(status) truly equivalent to returning the same status from main?
What are dangling pointers? How are dangling pointers different from memory leaks?
What is a stream?
Given a valid 24 hour format time find the combination of the value and write a program ,do not hard the value and if any other inputs provided should work with the logic implemented Input: 11:30 Output: 13:10 Input: 18:25 Output: 21:58
What do mean by network ?
When should a far pointer be used?
What are the different types of control structures in programming?
What is the difference between functions getch() and getche()?
Explain the use of fflush() function?
Are comments included during the compilation stage and placed in the EXE file as well?
What is spark map function?
An instruction which is analysed and acted upon by the processor prior to the compiler going its work a) directive b) constructive c) constant d) absolute mode