<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: venkatvarundaggupati</title>
    <description>The latest articles on DEV Community by venkatvarundaggupati (@venkatvarundaggupati).</description>
    <link>https://dev.to/venkatvarundaggupati</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F629316%2F1ab25f83-a70a-4634-9e0d-117990f84cc9.png</url>
      <title>DEV Community: venkatvarundaggupati</title>
      <link>https://dev.to/venkatvarundaggupati</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/venkatvarundaggupati"/>
    <language>en</language>
    <item>
      <title>C++</title>
      <dc:creator>venkatvarundaggupati</dc:creator>
      <pubDate>Thu, 25 Nov 2021 13:23:57 +0000</pubDate>
      <link>https://dev.to/venkatvarundaggupati/c-22j9</link>
      <guid>https://dev.to/venkatvarundaggupati/c-22j9</guid>
      <description>&lt;p&gt;C++ is a MUST for students and working professionals to become a great Software Engineer. I will list down some of the key advantages of learning C++:&lt;/p&gt;

&lt;p&gt;C++ is very close to hardware, so you get a chance to work at a low level which gives you lot of control in terms of memory management, better performance and finally a robust software development.&lt;/p&gt;

&lt;p&gt;C++ programming gives you a clear understanding about Object Oriented Programming. You will understand low level implementation of polymorphism when you will implement virtual tables and virtual table pointers, or dynamic type identification.&lt;/p&gt;

&lt;p&gt;C++ is one of the every green programming languages and loved by millions of software developers. If you are a great C++ programmer then you will never sit without work and more importantly you will get highly paid for your work.&lt;/p&gt;

&lt;p&gt;C++ is the most widely used programming languages in application and system programming. So you can choose your area of interest of software development.&lt;/p&gt;

&lt;p&gt;C++ really teaches you the difference between compiler, linker and loader, different data types, storage classes, variable types their scopes etc.&lt;/p&gt;

&lt;p&gt;There are 1000s of good reasons to learn C++ Programming. But one thing for sure, to learn any programming language, not only C++, you just need to code, and code and finally code until you become expert.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Character Arrays and Strings</title>
      <dc:creator>venkatvarundaggupati</dc:creator>
      <pubDate>Tue, 11 May 2021 08:16:35 +0000</pubDate>
      <link>https://dev.to/venkatvarundaggupati/character-arrays-and-strings-3dlk</link>
      <guid>https://dev.to/venkatvarundaggupati/character-arrays-and-strings-3dlk</guid>
      <description>&lt;h1&gt;
  
  
  Arrays:
&lt;/h1&gt;

&lt;p&gt;An array is a collection of data items, all of the same type, accessed using a common name. A one-dimensional array is like a list; A two dimensional array is like a table; The C language places no limits on the number of dimensions in an array, though specific implementations may.&lt;/p&gt;

&lt;p&gt;1-Dimensional array: It is a linear array that stores elements in a sequential order. Let us try to demonstrate this with an example: Let us say we have to store integers 2, 3, 5, 4, 6, 7. We can store it in an array of integer data type. The way to do it is:&lt;/p&gt;

&lt;p&gt;syntax:&lt;br&gt;
 dataType nameOfTheArray [sizeOfTheArray];&lt;br&gt;&lt;br&gt;
int Arr[6];&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;example:&lt;br&gt;
dataType nameOfTheArray [ ] = {elements of array };&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;int Arr [ ] = { 2, 3, 5, 4, 6, 7 };&lt;/p&gt;

&lt;p&gt;Multidimensional array: It can be considered as an array of arrays. The most commonly used multidimensional array is 2-dimensional array. It stores the elements using 2 indices, which give the information, in which row and which column a particular element is stored. A 2D array is essentially a matrix.&lt;/p&gt;

&lt;p&gt;Declaration:&lt;/p&gt;

&lt;p&gt;char A[ 3 ] [ 2 ] ;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;example:&lt;br&gt;
include&lt;br&gt;
include&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;using namespace std;&lt;br&gt;
int main( ) {&lt;br&gt;
    int Arr[6]; // declaring Arr&lt;br&gt;
    Arr[ ] = { 2, 3, 5, 4, 6, 7 }; // Initializing Arr by storing some elements in it.&lt;br&gt;
    char A [ 3 ] [ 2 ]; // declaring a 2D array&lt;br&gt;
    A [ 3 ] [ 2 ] = { { ‘P’, ‘I’} , {‘O’, ‘M’ } , {‘G’, ‘D’} } ;&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;printf(“The third element of Arr is\n ”,  Arr[ 2 ]);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;for (int i = 0; i &amp;lt; 6 ; i ++ )&lt;br&gt;
       printf(“%d “, Arr[i]);&lt;br&gt;
   printf(“\n”);&lt;br&gt;
   printf(“All the elements of 2D array A[ ][ ] are : \n”);&lt;/p&gt;

&lt;p&gt;for( int i = 0 ; i &amp;lt; 3; i++ ) {&lt;br&gt;
      for(int j= 0 ; j &amp;lt; 2 ; j++ ) {&lt;br&gt;
            printf(“%c “, A[i][j]);&lt;br&gt;
   }&lt;br&gt;
   printf(“\n”);&lt;br&gt;
  }&lt;br&gt;
  return 0;&lt;br&gt;
}&lt;/p&gt;

&lt;h1&gt;
  
  
  String:
&lt;/h1&gt;

&lt;p&gt;String is a sequence of characters that are treated as a single data item and terminated by a null character '\0'. Remember that the C language does not support strings as a data type. A string is actually a one-dimensional array of characters in C language. These are often used to create meaningful and readable programs.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;example and syntax:&lt;br&gt;
Declaring and Initializing a string variables:&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;char name[13] = "StudyTonight";&lt;br&gt;&lt;br&gt;
char name[10] = {'c','o','d','e','\0'};      &lt;/p&gt;

&lt;p&gt;char ch[3] = "hello";&lt;br&gt;&lt;br&gt;
char str[4];&lt;br&gt;
str = "hello"; &lt;/p&gt;

&lt;p&gt;String Input and Output:&lt;br&gt;
%s format specifier to read a string input from the terminal.&lt;/p&gt;

&lt;p&gt;But scanf() function, terminates its input on the first white space it encounters.&lt;/p&gt;

&lt;p&gt;edit set conversion code %[..] that can be used to read a line containing a variety of characters, including white spaces.&lt;/p&gt;

&lt;p&gt;The gets() function can also be used to read character string with white spaces.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;example:&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;char str[20];&lt;br&gt;
printf("Enter a string");&lt;br&gt;
scanf("%[^\n]", &amp;amp;str); &lt;br&gt;
printf("%s", str);&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
