MODULE – 4
STRINGS & POINTERS
Define string. How string is declared and initialized? Explain string input/output
1 functions with an example
What is string? Write a C program that reads a sentence and prints the
2 frequency of each of the vowels and total count of consonants?
Write a C program to eliminate multiple spaces from a sentence and make it
3 single
Explain with syntax and example ,the different string manipulation library functions
4
with example
Define a string. Explain any 4 string library functions with syntax and
5
example
Explain string manipulation library functions with their syntaxes
6
Define string. List out all string manipulation function. Explain any two with
7
example
Write a C Program to implement string copy operation STRCOPY(str1,str2)
8 that copies string str1 to another string str2 without using library function
Write a C program to copy a string ( combination of digits and alphabet ) to
9 another string (only alphabets)
Write a program to replace each constant in a string with the text one except
10 letter „z‟ „Z‟ and „a‟ „A‟ . Thus the string “Programming in C is fun” should be
modified as “Qsphsannjoh jo D jt gvo”.
Write a C program to concatenate two strings without using built-in function strcat()
11
12 Explain with example (i) Character string (ii) String literal (iii) storage classes
How string is declared and initialized? Explain any four string manipulation
13 functions with examples
Write a C program to check whether the given string is palindrome or not without using
14 in built function
Write a C program to search a name in a given list using binary search
15 technique
16 What is pointer? Explain how the pointer variable declared and initialized?
Explain the array of pointes with example? or Explain how pointers and arrays are
17 related with example
What is a pointer? Write a C program to find the sum and mean of all elements in
18 an array using pointer
Write a C program to swap two numbers using call by address(pointers or
19 reference) method
Write a C program using pointers to compute the Sum, Mean and Standard
20 deviation of all elements stored in an array of „n‟ real numbers
21 What is pointer? give the advantages and disadvantages of pointer data type