<?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>declaration of string | Student Projects</title>
	<atom:link href="https://studentprojects.in/tag/declaration-of-string/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:23:50 +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>String Basics</title>
		<link>https://studentprojects.in/software-development/c-tutorials/c-tutorials-c-tutorials/string-basics/</link>
					<comments>https://studentprojects.in/software-development/c-tutorials/c-tutorials-c-tutorials/string-basics/#respond</comments>
		
		<dc:creator><![CDATA[Shubhajna Rai]]></dc:creator>
		<pubDate>Tue, 25 Oct 2022 08:13:23 +0000</pubDate>
				<category><![CDATA[C Tutorials]]></category>
		<category><![CDATA[string basics]]></category>
		<category><![CDATA[how to straing work?]]></category>
		<category><![CDATA[declaration of string]]></category>
		<guid isPermaLink="false">https://studentprojects.in/?p=9679</guid>

					<description><![CDATA[<p>How do strings work? An array of characters makes up a string. An array stores data of the same type; for instance, an integer array can hold numbers, while a character array can hold a collection of characters. Strings are another term for this character array. A string is a one-dimensional array of characters with</p>
<p>The post <a href="https://studentprojects.in/software-development/c-tutorials/c-tutorials-c-tutorials/string-basics/">String Basics</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<p><strong>How do strings work?</strong></p>



<ul><li>An array of characters makes up a string. An array stores data of the same type; for instance, an integer array can hold numbers, while a character array can hold a collection of characters. Strings are another term for this character array. A string is a one-dimensional array of characters with a null (&#8216;0&#8217;) at the end.</li></ul>



<p><strong>Declaration of Strings:</strong></p>



<ul><li>Just like declaring a one-dimensional array, declaring a string is fairly easy. Simply said, we are thinking of it as a variety of characteristics.</li></ul>



<p><strong>The syntax for declaring a string is listed below.</strong></p>



<pre class="wp-block-code"><code lang="c" class="language-c">char string_name[string_size];</code></pre>



<ul><li>In the syntax above, size is used to specify the string&#8217;s length, or the number of characters it may hold. String name is any name supplied to the string variable. Remember that the null character (&#8216;0&#8217;), which is used to denote the string&#8217;s termination, is an additional terminating character.</li></ul>



<p>String illustration</p>



<pre class="wp-block-code"><code lang="c" class="language-c">#include &lt;stdio.h&gt;
int main()
{
    // declare and initialise string
    char str[] = "studentproject";
    printf("%s", str);
    return 0;
}</code></pre>



<p>Output:studentproject</p><p>The post <a href="https://studentprojects.in/software-development/c-tutorials/c-tutorials-c-tutorials/string-basics/">String Basics</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/string-basics/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
