You are here

Page not found

Search results

  1. C program to change case of a string

    ... characters which may be present in a string. strlwr in c #include <stdio.h> #include <string.h>   int main ( ) ... ) ;   return 0 ; } strupr in c #include <stdio.h> #include <string.h>   int main ( ) ...

    yogesh - 06/01/2018 - 19:08

  2. Addition of two numbers in C

    Addition of two numbers in C: This C language program performs the basic arithmetic operation of addition of two ... + 6) will be printed on the screen. Addition program in C #include<stdio.h>   int main ( ) { int a , ...

    yogesh - 05/01/2018 - 16:01

  3. C program to compare two strings

    C program to compare two strings using strcmp function , without strcmp function and using pointers . String comparison C program #include <stdio.h> #include <string.h>   int main ... Compare Strings program. Output of program: C string comparison program We can create our own function to compare two ...

    yogesh - 06/01/2018 - 22:01

  4. C program to print diamond pattern

    Diamond pattern in C language: This code prints diamond pattern of stars. The diamond shape is as follows: * *** ***** *** * C programming code #include <stdio.h>   int main ( ) { int n , c , k , space = 1 ;   printf ( "Enter number of ...

    yogesh - 06/01/2018 - 16:15

  5. C program to generate random numbers

    C program to generate pseudo-random numbers using rand and random function (Turbo C compiler only). As the random numbers are generated by an algorithm used in a ... and equals the maximum value returned by rand function. C programming code using rand We use modulus operator in our program. If ...

    yogesh - 06/01/2018 - 20:18

  6. C programming

    C programming language: To easily learn C language you must start making programs in it. As you may already know that ... code which can be executed directly on a machine. Dev C++ IDE is a good choice, so if you are not having it installed on your ...

    yogesh - 17/01/2018 - 20:33

  7. Sum of digits in C

    C program to calculate the sum of digits of a number: we will use modulus ... individual digits of a number and keep on adding them. C programming code #include <stdio.h>   int main ( ) { ... = sum + remainder so sum = 8 now. 98/10 = 9 because in c whenever we divide integer by another integer we get an integer. 9%10 = 9 ...

    yogesh - 05/01/2018 - 16:24

  8. C string length program

    C string length program: This program prints length of a string, for example, consider the string "c programming" its length is 13. The null character is not counted when ... of a string, we can use strlen function of "string.h." C program to find length of a string without using strlen function String ...

    yogesh - 06/01/2018 - 18:38

  9. C program to swap two numbers

    C program to swap two numbers with and without using third variable , using ... Swapping means interchanging. For example, if in your C program you have taken two variables a and b where a = 4 and b = 5, then ... a = 4, b = 5 after swapping a = 5, b = 4. In the first C program to swap numbers we will use a temporary variable to swap two numbers. ...

    yogesh - 05/01/2018 - 17:00

  10. C program for bubble sort

    C program for bubble sort: C programming code for bubble sort to sort numbers or arrange them in ascending ... order. Bubble sort algorithm implementation in C /* Bubble sort code */   #include <stdio.h>   int main ...

    yogesh - 06/01/2018 - 17:51

Pages