Posts

Top 10 Programming Language to learn in 2023

Are you a programming enthusiast looking to stay ahead of the curve in 2023? With the ever-evolving tech landscape, keeping up with the Best Programming Language to learn can be a daunting task. Fear not, as we have compiled a list of the top 10 Programming Languages that you should consider learning in 2023. Python: This versatile language continues to dominate in 2023, with its ease of use, readability, and a vast library of modules. JavaScript: As web development grows increasingly popular, JavaScript remains a crucial player, with its ability to create dynamic and interactive web pages. Java: This language has stood the test of time and remains a popular choice for enterprise software development. C++: A staple in the gaming and systems development industries, C++ offers exceptional performance and memory management. Swift: Apple's preferred language for iOS app development, Swift continues to grow in popularity with its simplicity and reliability. R: As data science and machin...

Structure In C Programming | C Programming

Structure In C Programming    Arrays are used to store large set of data and manipulate them but the disadvantage is that all the elements stored in an array are to be of the same data type. If we need to use a collection of different data type items it is not possible using an array. When we require using a collection of different data items of different data types we can use a structure.  Structure is a method of grouping data of different types.  A structure is a convenient method of handling a group of related data items of different data types.  

String In C Programming | C Programming

String The way a group of integers can be stored in an integer array. Similarly, a group of characters can be stored in a character array. Character arrays are many a time also called strings. Many languages internally treat strings as character arrays, but somehow conceal this fact from the programmer. Character arrays or strings are used by programming languages to manipulate text such as words and sentences. A string constant is a one-dimensional array of characters terminated by a null (‘\0’).  For example, char name [ ] = { 'H' , 'A' , 'E' , 'S' , 'L' , 'E' , 'R' , ' \0 ' } ; Each character in the array occupies one byte of memory and the last character is always ‘\0’. What character is this? It looks like two characters, but it is actually only one character, with the \ indicating that what follows it is something special. ‘\0’ is called a null character. Note that ‘\0’ and ‘0’ are not the same. The ASCII value ...

Global Variable in C Programming | C Programming

Global Variable in C Programming   A local variable is one that is declared inside a function and can only be used by that function. If you declare a variable outside all functions then it is a global variable and can be used by all functions in a program.             // Global variables     int a;     int b;      int Add()     {        return a + b;     }      int main()     {     // Local variable          a = 5;          b = 7;         answer = Add();          printf("%d\n",answer);         return 0;     }        Call by Value and Call by reference       The argument...

Functions and Array in C Programming | C Programming

Functions and Array in C Programming We can pass an entire array of values into a function just as we pass individual variables. In this task it is essential to list the name of the array along with functions arguments without any subscripts and the size of the array as arguments      For example:    Largest(a,n);    will pass all the elements contained in the array a of size n. the called function expecting this call must  be appropriately defined. The largest function header might look like:      float smallest(array,size);    float array[];    int size;  The function smallest is defined to take two arguments, the name of the array and the size of the array  to specify the number of elements in the array. The declaration of the formal argument array is made as  follows:       float array[ ];      The above declaration indicates to compiler that the ar...

GO TO Statement in C Programming | C Programming

Image
GO TO Statement in C Programming     The goto statement is simple statement used to transfer the program control unconditionally from one    statement to another statement. Although it might not be essential to use the goto statement in a highly    structured language like C, there may be occasions when the use of goto is desirable.        Syntax               a> b>                goto label; label:              ………… …………              ………… …………              ………… …………            ...

If statements in C Programming | C Programming

Image
If statements in C Programming The different form of  if statements  with their syntax and semantic diagram are:- if statements:-                            The if statement evalutes the test expression inside the parenthesis. If the test expression is evaluated to true(non zero), statements inside the body of it is executed. If the test ecpression is evaluated to false(0), statements inside the body of if is skipped from execution. The Syntax and Sementics diagram is : if (test expression) {(statements) }                                                                                                               ...

Switch Statement in C Programming | C Programming

Switch Statement in C Programming      Unlike the If statement which allows a selection of two alternatives the switch statement allows a    program to select one statement for execution out of a set of alternatives. During the execution of the    switch statement only one of the possible statements will be executed the remaining statements will be    skipped. The usage of multiple If else statement increases the complexity of the program since when the number of If else statements increase it affects the readability of the program and makes it difficult to follow the program. The switch statement removes these disadvantages by using a simple and straight forward approach.        The general format of the Switch Statement is                    Switch (expression)      ...

Popular posts from this blog

Eliminating Epsilon transition (ε-Transitions) | Conversion of Epsilon-NFA to DFA | Conversion of Epsilon-NFA to NFA | Theory Of Computation (TOC)

C program to Find Cartesian Product of Two Sets | C programming

Top 10 Programming Language to learn in 2023