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 is structure padding and packing in c?
List the different types of c tokens?
How would you rename a function in C?
How can I call system when parameters (filenames, etc.) Of the executed command arent known until run time?
GIVEN A FLOATING POINT NUMBER HOW IS IT ACTUALLY STORED IN MEMORY ? CAN ANYONE EXPLAIN?? THE 32 BIT REPRESENTATION OF A FLOATING POINT NUMBER ALLOTS: 1 BIT-SIGN 8 BITS-EXPONENT 23 BITS-MANTISSA
What is a program flowchart and how does it help in writing a program?
What is the meaning of ?
What is a ternary operator in c?
What is the process to create increment and decrement stamen in c?
Explain union. What are its advantages?
program to convert a integer to string in c language'
What is meant by initialization and how we initialize a variable?
what is stack , heap ,code segment,and data segment
What is the difference between functions getch() and getche()?
What is the general form of a C program?