2 MARKS
5 MARKS
1.
What
is void pointer? How is it different from other pointers?
2.
Define
double pointer with example.
3.
What
is the full form and significance of EOF?
4.
Distinguish
between #ifdef and #if directives.
5 MARKS
1.
What
is the difference between call by value and call by reference? Write a program
to swap two floating point numbers using call by reference method.
2.
What
is a pointer? What are they required? With reference to pointer define the work
of & operator? Write a program in ‘C’ using pointers to swap two numbers.
3.
Write
a program to print out our array using the array notation and by dereferencing
pointer.
4.
Explain
with example defining and calling macros and conditional compilation.
5.
Write
a simple C program to show the use of string handling functions.
6.
Describe
the use and limitations of the functions getc() and putc(). Write a program in
‘C’ to read data from the keyboard, write it to a file called INPUT, again read
the same data from INPUT file, and display it on the screen.
7.
What
is a string? Write a program in ‘C’ that allows the user to enter a string and
perform the following operations on it:
a.
Count
number of characters in string
b.
Remove
spaces in string
c.
Count
number of words in it
8.
Explain
the role of the C preprocessor. What is macro and what precautions one should
take when using macros with arguments? What are the advantages of using macro
definitions in a program? Give one example of using macro in a program.
9.
Write
a program in ‘C’ to read data from keyboard, write it to a file named PASCO,
again read the same data from the file PASCO and display number of characters,
number of vowels and number of lines contained in it on the screen.
10. Write a program
in ‘C’ to create a list of ten elements using dynamic memory allocation and
display the sorted list.