<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>user input | Student Projects</title>
	<atom:link href="https://studentprojects.in/tag/user-input/feed/" rel="self" type="application/rss+xml" />
	<link>https://studentprojects.in</link>
	<description>Microcontroller projects, Circuit Diagrams, Project Ideas</description>
	<lastBuildDate>Sat, 10 Dec 2022 04:24:24 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.1.7</generator>
	<item>
		<title>User Input/Output</title>
		<link>https://studentprojects.in/software-development/c-tutorials/c-tutorials-c-tutorials/user-input-output/</link>
					<comments>https://studentprojects.in/software-development/c-tutorials/c-tutorials-c-tutorials/user-input-output/#respond</comments>
		
		<dc:creator><![CDATA[Shubhajna Rai]]></dc:creator>
		<pubDate>Tue, 25 Oct 2022 07:56:22 +0000</pubDate>
				<category><![CDATA[C Tutorials]]></category>
		<category><![CDATA[user input]]></category>
		<category><![CDATA[user output]]></category>
		<guid isPermaLink="false">https://studentprojects.in/?p=9667</guid>

					<description><![CDATA[<p>We already know how to produce values in C using the printf() function. To obtain user input, another method known as scanf() is used.Two arguments are required by the scanf() method.The variable&#8217;s format specifier (as shown in the example below) the memory address of the variable is stored by the reference operator (&#38;myNum). The input</p>
<p>The post <a href="https://studentprojects.in/software-development/c-tutorials/c-tutorials-c-tutorials/user-input-output/">User Input/Output</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>We already know how to produce values in C using the printf() function. To obtain user input, another method known as scanf() is used.Two arguments are required by the scanf() method.The variable&#8217;s format specifier (as shown in the example below) the memory address of the variable is stored by the reference operator (&amp;myNum). The input data is sent to this.</p>



<p>Input refers to the act of providing data to a software. A file or the command line can be used to provide an input. The built-in functions in C programming make it possible to read the input and pass it along to the programme as needed.</p>



<p>The term &#8220;output&#8221; refers to the presentation of data in a file, on the screen, or on a printer. A collection of built-in functions for C programming are available to output data to the computer screen as well as save it to text or binary files.</p>



<p>One such illustration shows how a programme receives user input.</p>



<pre class="wp-block-code"><code class="">{
    int marks;
    char name[30];
    printf("Enter student's name: ");
    scanf("%s", name);
    printf("Enter marks in Maths: ");
    scanf("%d", &amp;marks);
    printf("Hello %s! You have scored %d in Maths!", name, marks);
    return 0;
}</code></pre>



<p>Enter student&#8217;s name: Rohan</p>



<p>Enter marks in Maths: 98</p>



<p>Output: Hello Rohan! You have scored 98 in Maths!</p><p>The post <a href="https://studentprojects.in/software-development/c-tutorials/c-tutorials-c-tutorials/user-input-output/">User Input/Output</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/software-development/c-tutorials/c-tutorials-c-tutorials/user-input-output/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
