You are on page 1of 1

K. K. Wagh Polytechnic, Nashik – 3.

Subject: Programming in ‘C’ Sub Code: 9017


Class: FYIF (IF/2/C)
Academic Year: 2008 – 2009

Practical No. 9
Understand the String functions:

1. Accept any sentence from keyboard using gets( ) function and count total number of
words in it.
2. Accept any string from keyboard, convert it into the upper case and display it.
3. Read a string from keyboard and inverse the case of it. That is, convert lower case
letters to upper-case and vice versa.
4. Input any two strings from user and find whether these are equal or not. Don’t
consider the case.
5. Read a string from user and analyze it. That is, count total number of alphabets, digits,
special symbols and display their counts.
6. Write a program to accept a string and display a list of ASCII codes which represent
accepted string (Asked in Summer 2007 Examination).

Kute T. B.
(Subject Teacher)

CPR – Practical No. 9

You might also like