You are here

Page not found

Search results

  1. getch in C

    Function getch in C program prompts a user to press a character. It doesn't show up on the ... header file. The function is not a part of standard C library. C programming code for getch #include <stdio.h> #include ...

    Yogesh Suneja - 14/12/2019 - 21:35

  2. C program to swap two numbers

    C program to swap two numbers with and without using third variable , using ... 4 and b = 5, after swapping them, a = 5, b = 4. In the first C program, we use a temporary variable to swap two numbers. ... || []).push({}); Swapping of two numbers in C #include <stdio.h> int main ( ) {   int ...

    Yogesh Suneja - 19/11/2019 - 09:06

  3. C program to print a string

    C program to print a string using various functions such as printf, puts. ...     char z [ 100 ] = "I am learning C programming language." ;     printf ( "%s" , z ) ; ... return 0 ; } Output: I am learning C programming language. (adsbygoogle = ...

    Yogesh Suneja - 14/10/2020 - 21:18

  4. Sum of n numbers in C

    Sum of n numbers in C: This program adds n numbers that a user inputs. The user enters a number ... = window.adsbygoogle || []).push({}); C program to find sum of n numbers using a for loop #include <stdio.h> ... ( ) {   int n , sum = 0 , c , value ;     printf ( "How many numbers you want to add? ...

    Yogesh Suneja - 10/12/2019 - 23:42

  5. Bubble sort in C

    Bubble sort in C to arrange numbers in ascending order; you can modify it for descending order ... || []).push({}); Bubble sort program in C /* Bubble sort code */ #include <stdio.h> int main ... ) {   int array [ 100 ] , n , c , d , swap ;   printf ( "Enter number of elements \n ...

    Yogesh Suneja - 14/10/2020 - 21:14

  6. Arithmetic operations in C

    C program to perform basic arithmetic operations of addition, subtraction, ... of two numbers/integers that user inputs. Division in C In C language, when we divide two integers, we get an integer result, e.g., 5/2 ...

    Yogesh Suneja - 11/10/2020 - 01:08

  7. String concatenation in C

    C program to concatenate two strings; for example, if the two input strings are "C programming" and " language" (note the space before language), then the ... 100 ] ;         printf ( "Enter source string \n " ) ;     gets ( original ) ;   ...

    Yogesh Suneja - 04/10/2020 - 11:26

  8. String compare in C

    How to compare strings in C? You can use do it using strcmp function , without strcmp function and ... = window.adsbygoogle || []).push({}); C compare strings #include <stdio.h> #include <string.h> ... program: Download Compare Strings program. C string comparison program We can create a function to compare two ...

    Yogesh Suneja - 05/12/2019 - 08:50

  9. C program to print diamond pattern

    The diamond pattern in C language: This code prints a diamond pattern of stars. The diamond shape is ... || []).push({}); Diamond pattern program in C #include <stdio.h> int main ( ) {   int n , c , k ;   printf ( "Enter number of rows \n " ) ; ...

    Yogesh Suneja - 26/11/2019 - 22:50

  10. 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 ... = window.adsbygoogle || []).push({}); C programming code using rand We use modulus operator in our program. If ...

    Yogesh Suneja - 29/09/2018 - 15:28

Pages