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...

C Program To Count Number Of Positive And Negative Number | C Programming

Image
C Program To Count Number Of Positive And Negative Numbers #include <stdio.h>         int main () {           int a [ 50 ],n,count_neg= 0 ,count_pos= 0 ,i;             printf ( "Enter the size of the array \n " );           scanf ( " %d " ,&n);           printf ( "Enter the elements of the array \n " );         for (i= 0 ;i < n;i++)               scanf ( " %d " ,& a [i]);           for (i= 0 ;i < n;i++)         {                     if ( a [i] < 0 )                               count_neg++;                   else                ...

C program to print the number in ascending order using function (passing array function)

Image
#include<stdio.h> #define SIZE 100 void reorder (int, int[]); int main() { int i,n,x[SIZE]; printf("How many numbers?"); scanf("%d",&n); //read the list of numbers for(i=0;i { printf("x[%d]=",i+1); scanf("%d",&x[i]); } //record all array elements reorder(n,x); //display the re- order list of number for(i=0;i { printf("\nx[%d]=%d\n",i+1,x[i]); } return 0; } void reorder(int n,int x[]) { int i,item,temp; for(item=0;item { for(i=item+1;i { if (x[i] { //inter change two elements temp = x[item]; x[item]=x[i]; x[i]=temp; } } } } OUTPUT

C Program To Find Maximum And Minimum Value Using Array | C Programming

Image
C program to find maximum and minimum values within a defined array of numbers. #include <stdio.h> int main () {   int i , n , max = 0 , min = 0 , a [ 100 ];   printf ( "Enter a number: " );   scanf ( " %d " , & n );   printf ( "Enter numbers in array: \n " );   for ( i = 0 ; i < n ; i ++)   {     scanf ( " %d " , & a [ i ]);   }   min = a [ 0 ];   max = a [ 0 ];   for ( i = 0 ; i < n ; i ++)   {     if ( a [ i ] > max )     {       max = a [ i ];     }     if ( a [ i ] < min )     {       min = a [ i ];     }   }   printf ( "The largest number is %d \n " , max );   printf ( "The smallest number is %d \n " , min );   return 0 ; } Output

Operators in C Programming and Its Types | C Programming Language

Image
Operators in C Programming: - An operator in general is a symbol that operates on a certain data types. An operator is a symbol that tells the compiler to perform specific mathematical or logical functions. The types of operators are: - Arithmetic Operators in C Programming-:              The arithmetic operators performs arithematic operations. The arithmetic operator is given below:- (+) - Addition (-) -Subtraction (*)- Multiplication (/)- Division (%) - Modulo Division   Relational operators in C Programming:-             Relational operators are used to compare logical, arithmetic and character expression. A list of relational operators is give below:- (<)             Less than (>)            Greater than (< =)          Less th...

C Program To Find Factorial Using Function | C programming

Image
 C Program To Find Factorial Using Function #include <stdio.h> long int fact ( int ); int main () {   int n ;   printf ( "Enter number: " );   scanf ( " %d " , & n );   printf ( " %d != %ld \n " , n , fact ( n )); } long int fact ( int n ) {   if ( n <= 1 )     return 1 ;   else     return ( n * fact ( n - 1 )); } Output

Functions | Recursion Function in C Programming | Types of Functions | Calling Function | Function Arguments | C Programming

Image
Functions                     A function is a self-contained program segment that carries out same specific well defined task.                 In other words, a number of statements grouped into a single logical unit is referred to as a function.                 A function will have carried out its intended action whenever it is accessed (i.e. wherever the function is “called”) from some other portion of the program.                 Some function can be accessed from several different places with in a program. Once the function has carried out its intended action control will be returned to the point from which function was accessed.           ...

Introduction to C Programming | C Programming

Image
Introduction to C Programming ±    C is a general-purpose high level language ±    Father of C – Dennis Ritchie ±    Originally developed for the UNIX operating system ±    Implemented on the Digital Equipment Corporation, PDP-11 computer in 1972 ±    The UNIX operating system and all UNIX applications are written in the C language   C has now become a widely used professional language for various reasons: ±     Easy to learn ±     Structured language ±     It produces efficient programs ±     It can handle low-level activities ±     It can be compiled on a variety of computers Why we use C? ±    C was initially used for system development work, in particular the programs that make-up the operating system ±    C was adopted as a system development language because it produces code that runs nearly ...

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