You are here

Page not found

Search results

  1. Sum of n natural numbers in C

    C program to find the sum of n natural numbers using the formula and a for ... Sum of first n natural numbers = n*(n+1)/2. C program to find sum of n natural numbers #include <stdio.h> ...   int n , sum ;     printf ( "Enter a number \n " ) ;     scanf ( "%d" , & n ) ; ...

    Yogesh Suneja - 04/11/2020 - 14:18

  2. assert in C

    ... that is used to check specific conditions at runtime (when a program is under execution) and is very useful while debugging a program. ... is displayed on the screen specifying the filename, the line number, the function name, the condition that does not hold (see image below). ...

    Yogesh Suneja - 02/10/2020 - 16:14

  3. C program to swap two numbers

    C program to swap two numbers with and without using third variable , using ... XOR operator. Swapping means interchanging. If the program has two variables a and b where a = 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. ...

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

  4. Selection sort in C

    ... || []).push({}); Selection sort program in C #include <stdio.h> int main ( ) { ... d , position , t ;   printf ( "Enter number of elements \n " ) ;   scanf ( "%d" , & n ...

    Yogesh Suneja - 25/10/2020 - 14:26

  5. String length in C

    C program to find length of a string, for example, the length of the string "C ... To find it, we can use strlen function of "string.h." C program to find length of a string without using strlen function , recursion ... || []).push({}); Download String length program. Output of program: String length in C without strlen ...

    Yogesh Suneja - 22/10/2020 - 21:08

  6. Delay function in C

    ... Delay in C: delay function is used to suspend execution of a program for a particular time. Declaration: void delay(unsigned int); Here unsigned int is the number of milliseconds (remember 1 second = 1000 milliseconds). To use delay ...

    Yogesh Suneja - 29/09/2018 - 13:46

  7. drawpoly function in c

    ... int num, int *polypoints ); num indicates (n+1) number of points where n is the number of vertices in a polygon, polypoints ... last point(320, 150) in array is same as first. See the program below and then its output, it will further clear your understanding. ...

    Yogesh Suneja - 08/01/2018 - 20:55

  8. C source code

    ... Numbers without loops Merge arrays paint program press me button game web browser Traffic Light ... car Anagrams Next Prime Palindrome Reverse words in string Pattern Matching Insert substring into ...

    Yogesh Suneja - 14/11/2019 - 23:38

  9. Submit your source code or program

    Here, you can submit your C, C++, or Java source code/program. We will check it, and if we find it useful, we will add it to our ...

    Yogesh Suneja - 22/11/2019 - 19:38

  10. getmaxcolor function

    ... color value for current graphics mode and driver. Total number of colors available for current graphics mode and driver are ( ... starts from zero. Declaration: int getmaxcolor(); C program of getmaxcolor #include<graphics.h> #include<conio.h> ...

    Yogesh Suneja - 08/01/2018 - 20:55

Pages