C Programming Important Questions: Unit I
C Programming Important Questions: Unit I
UNIT I:
UNIT –II
3. What are the types of function call (or) Explain parameter passing methods
Ans:
a. Call by value and cal by reference
4. Explain storage classes
Ans:
a. Automatic variables c. Static variables
b. External variables d. Register variables
5. Explain union with example
6. Explain array within structure within example
7. Explain structure definition with example
8. Explain recursion
UNIT-IV
1. Define pointer and give its advantage
2. Give the relation between pointer and array
3. Describe pointers to pointers
4. Types of memory allocation
a. Static memory allocation
b. Dynamic memory allocation
5. Explain the functions used in Dynamic memory allocation
a. malloc()
b. calloc()
c. realloc()
d. free()
UNIT-V
1. Explain C preprocessor
a. Macro substitution directive
b. File Inclusion Directive
c. Compiler control directive
2. Explain Error handling in files
(i) feof() (ii) ferror()
3. Explain command line argument with example
4. Define a file, how a file is opened and closed.
5. Explain random access files
a. ftell()
b. rewind()
c. fseek()