Click here to Skip to main content
15,887,404 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How Do I Write A Program Where A String Of 30 Characters Is Given As Input .Only Alphabets Are Allowed .Except Space Symbol And Dot Symbol No Other Symbols Are Allowed.Numbers Are Not Allowed.In...

I want a program for the question written above in C language.
Posted
Updated 8-Jan-14 23:56pm
v2
Comments
phil.o 9-Jan-14 5:51am    
- Please use proper casing; English sentences do not take an upper case at each word.
- We do not do others homework; it has been assigned to you for good reasons, thus you have to give it a try before asking someone to do it for you. Basically, that's cheating.
Kornfeld Eliyahu Peter 9-Jan-14 5:51am    
Sorry only D left...you have to wait to next months, so step into line please!!!

1 solution

You coud accept a string as input from the user (e.g. via scanf) and then validate it applying the given constraints (e.g. check if the string is too big, search for invalid characters and so on).
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900