Kiran Sir C
Kiran Sir C
Kiran Sir C
It is a user-defined function.
8. What are the different storage classes in C?
There are four types of storage classes.
Automatic
Extern
Regiter
Static
9. What is a structure?
Structure constitutes a super data type which represents several different data types in a
single unit. A structure can be initialized if it is static or global.
10. What is arrays?
Array is a variable that hold multiple elements which has the same data type.
11. What is the difference between #include‹ › and #include “ ”?
#include<>: Specifically used for built in header files.
#include “ ” : Specifically used for used for user defined/created n header file.
12. What are the advantages of the functions?
It reduces the Complexity in a program by reducing the code.
Function is easily understanding and reliability and execution is faster.
It also reduces the Time to run a program. In other way, Its directly proportional to
Complexity.
Its easy to find-out the errors due to the blocks made as function definition outside the
main function.
13. How do declare an array?
We can declare an array by specify its data type, name and the number of elements the
array holds between square brackets immediately following the array name.
syntax : data_type array_name[size];
14. What are the differences between structures and union?
A structure variable contains each of the named members, and its size is large enough to
hold all the members. Structure elements are of same size.
A Union contains one of the named members at a given time and is large enough to hold
the largest member. Union element can be of different sizes.
15. What is the difference between arrays and pointers?
Array is collection of similar datatype. it is a static memory allocation means we can not
increment and decrement the arry size once we allocated. and we can not increment the base
address, reassign address.
Pointer is a dynamic memory allocation. we can allocate the size as we want, assigning
into another variable and base address incrimination is allowed.