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
When should volatile modifier be used?
What will the code below print when it is executed? int x = 3, y = 4; if (x = 4) y = 5; else y = 2; printf ("x=%d, y=%d ",x,y);
What is the difference between exit() and _exit() function?
What is use of integral promotions in c?
Why calloc is better than malloc?
What are loops c?
What does %d do?
What is the advantage of using #define to declare a constant?
Why do we use c for the speed of light?
Explain what are multidimensional arrays?
Can you define which header file to include at compile time?
In c programming write a program that will print 10 multiples of 3 except 15,18,21 using looping
Explain the difference between null pointer and void pointer.
What does %p mean?
Explain how does flowchart help in writing a program?