<?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>difference between getc() - Wikitechy</title>
	<atom:link href="https://www.wikitechy.com/interview-questions/tag/difference-between-getc/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.wikitechy.com/interview-questions/tag/difference-between-getc/</link>
	<description>Interview Questions</description>
	<lastBuildDate>Fri, 07 Oct 2022 07:04:39 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://www.wikitechy.com/interview-questions/wp-content/uploads/2025/10/cropped-wikitechy-icon-32x32.png</url>
	<title>difference between getc() - Wikitechy</title>
	<link>https://www.wikitechy.com/interview-questions/tag/difference-between-getc/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Difference between getc(), getchar(), getch() and getche()</title>
		<link>https://www.wikitechy.com/interview-questions/c/difference-between-getc-getchar-getch-and-getche/</link>
					<comments>https://www.wikitechy.com/interview-questions/c/difference-between-getc-getchar-getch-and-getche/#respond</comments>
		
		<dc:creator><![CDATA[webmaster]]></dc:creator>
		<pubDate>Fri, 07 Oct 2022 07:04:39 +0000</pubDate>
				<category><![CDATA[C]]></category>
		<category><![CDATA[difference between getc and fgetc]]></category>
		<category><![CDATA[difference between getc and getchar]]></category>
		<category><![CDATA[difference between getc()]]></category>
		<category><![CDATA[difference between getch and getche]]></category>
		<category><![CDATA[explain getch() getchar() gets() puts()]]></category>
		<category><![CDATA[getch() and getche()]]></category>
		<category><![CDATA[getchar in c]]></category>
		<category><![CDATA[getchar()]]></category>
		<category><![CDATA[getche header file]]></category>
		<category><![CDATA[getche in c]]></category>
		<category><![CDATA[getche() function in c]]></category>
		<category><![CDATA[what is the difference between getch() and getchar()]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=4963</guid>

					<description><![CDATA[getc() This function gets single character as input and returns an integer value. If this fails, it returns EOF. Syntax of getc() getchar() The function getchar() reads the character from the standard input while getc() reads from the input stream.  Syntax of getchar()  getch() The function getch() is a non-standard function. It is included in [&#8230;]]]></description>
										<content:encoded><![CDATA[<h2 id=""><img fetchpriority="high" decoding="async" class="alignnone size-full wp-image-4964 aligncenter" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/10/difference-between-getc-getch-getche.jpg" alt="" width="891" height="505" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/10/difference-between-getc-getch-getche.jpg 891w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/10/difference-between-getc-getch-getche-300x170.jpg 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/10/difference-between-getc-getch-getche-768x435.jpg 768w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/10/difference-between-getc-getch-getche-390x221.jpg 390w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/10/difference-between-getc-getch-getche-820x465.jpg 820w" sizes="(max-width: 891px) 100vw, 891px" /></h2>
<h2 id="getc"><strong>getc()</strong></h2>
<ul>
<li>This function gets single character as input and returns an integer value. If this fails, it returns EOF.</li>
</ul>
<h3 id="syntax-of-getc"><strong>Syntax of getc()</strong></h3>
<div class="code-embed-wrapper"> <div class="code-embed-infos"> </div> <pre class="language-c code-embed-pre line-numbers"  data-start="1" data-line-offset="0"><code class="language-c code-embed-code">int getc(FILE *stream);</code></pre> </div>
<h2 id="getchar"><strong>getchar()</strong></h2>
<ul>
<li>The function getchar() reads the character from the standard input while getc() reads from the input stream.</li>
</ul>
<h3 id="syntax-of-getchar"> <strong>Syntax of getchar() </strong></h3>
<div class="code-embed-wrapper"> <div class="code-embed-infos"> </div> <pre class="language-c code-embed-pre line-numbers"  data-start="1" data-line-offset="0"><code class="language-c code-embed-code">  int getchar(void);</code></pre> </div>
<h2 id="getch"><strong>getch()</strong></h2>
<ul>
<li>The function getch() is a non-standard function.</li>
<li>It is included in “conio.h” header file.</li>
<li>Getch() is not a part of standard library.</li>
<li>It returns the entered character without even waiting for the enter key.</li>
</ul>
<h3 id="syntax-of-getch"> <strong> Syntax of getch()</strong></h3>
<div class="code-embed-wrapper"> <div class="code-embed-infos"> </div> <pre class="language-c code-embed-pre line-numbers"  data-start="1" data-line-offset="0"><code class="language-c code-embed-code">int getch();</code></pre> </div>
<h2 id="getche"><strong>getche()</strong></h2>
<ul>
<li>Like getch(), the getche() function is also a non-standard function and is included in “conio.h” header file.</li>
<li>It reads a single character from the keyboard and returns it immediately without even waiting for enter key.</li>
</ul>
<h3 id="syntax-of-getche"> <strong>Syntax of getche()</strong></h3>
<div class="code-embed-wrapper"> <div class="code-embed-infos"> </div> <pre class="language-c code-embed-pre line-numbers"  data-start="1" data-line-offset="0"><code class="language-c code-embed-code">int getche(void);</code></pre> </div>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/c/difference-between-getc-getchar-getch-and-getche/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
