http://www.daniweb.com/code/snippet216679.html
This code is read an integer from user.

is there any way, tt i can using char datatype variable to accept text only.

text maximum is 30letter include string/spare. It also will do a check on the char array whether is text only. i've google around but no answer. ;) hope anyone have any idea to convert to read an integer to read an char only.

Look up fgets()

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.