Thursday, July 30, 2009

What is the meaning of Outputting and Inputting of String in C programming?

Please provide the answer for this question. I really need it. Thank you so much.

What is the meaning of Outputting and Inputting of String in C programming?
first lets to what a string is





a string is a datatype which is non-numerical and is used to store characters and words. The data stored in a string could include numbers and other numerical symbols but it will be treated as text. It should be enclosed in quotation marks ("")





in other words...a string is a datatype where you could store any letters, words number. In terms of numbers, it will not be treated as number but is treated as text. The datatype string could not be used for arithmitical operations (since it is treated as text)





Now on output and input is.





Output means displaying a figure, it could either be in a monitor or printer etc





Input means placing a figure, it could be done either with a mouse or keyboard





SO...back to your main question, when we say output or input a string it means to display/place a figure to be saved on a string datatype ^_^
Reply:inputting of string is the data that you enter in c programming.





outputting refers to the result or final displayed data.





for example a program that tells you to enter 2 numbers and computes the sum.





enter first integer : 1


enter second integer: 2





sum of both: 3





first and second entry are the input string. the result is the output string.


No comments:

Post a Comment