You are here

Page not found

Search results

  1. 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 output will be "C programming language." To concatenate the strings, we use the strcat ...

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

  2. C++ new operator example

    C++ new operator example: C++ code using "new" operator to allocate memory on heap dynamically. C++ programming code #include <iostream>   using ...

    Yogesh Suneja - 11/12/2019 - 11:11

  3. C program to find maximum element in a matrix

    C program to find the largest or the maximum element in a matrix. C program #include <stdio.h> int main ( ) {   int m , n , c , d , matrix [ 100 ] [ 100 ] , maximum ;   ...

    Yogesh Suneja - 03/12/2019 - 22:15

  4. C program to reverse words in a string

    C program to reverse words in a string or sentence, for example, if the input string is "c++ programming language" then the output will be "++c gnimmargorp egaugnal" i.e. we will invert each word occurring in the input ...

    Yogesh Suneja - 23/11/2019 - 11:40

  5. C program to insert substring into a string

    C program to insert a substring into a string: This code inserts a string into the source string. For example,if the source string is "C programming" and string to insert is " is amazing" (please note there is ... we insert string at position 14 then we obtain the string "C programming is amazing". In our C program we will make a function which ...

    Yogesh Suneja - 23/11/2019 - 11:40

  6. C++ program to add two complex numbers

    C++ program to add two complex numbers. C++ programming code #include <iostream> using namespace ... ; int main ( ) {    complex a, b, c ;     cout << "Enter a and b where a + ib is the first ...

    Yogesh Suneja - 13/07/2018 - 12:29

  7. C program to check subsequence

    C program to check Subsequence; don't confuse it with substring. In our ... is of smaller or equal length than the second string. C subsequence program #include <stdio.h> #include <string.h> ... [ ] , char b [ ] ) {   int c , d ;   c = d = 0 ;   while ( a [ c ...

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

  8. Matrix multiplication in C

    Matrix multiplication in C language to calculate the product of two matrices (two-dimensional arrays). A ... || []).push({}); Matrix multiplication in C language #include <stdio.h>   int main ( ) {   int m , n , p , q , c , d , k , sum = 0 ;   int first [ 10 ] [ ...

    Yogesh Suneja - 12/12/2019 - 00:47

  9. C program to add two complex numbers

    C program to add two complex numbers: this program performs addition of two ... to store a complex number. Complex numbers program in C language #include <stdio.h> struct complex {     ... ( ) {     struct complex a , b , c ;     printf ( "Enter a and b where a + ib is the first ...

    Yogesh Suneja - 23/11/2019 - 11:40

  10. Conditional compilation in C programming language

    Conditional compilation in C programming language: Conditional compilation as the name implies that the ... the following code to quickly understand the scenario: C program #include <stdio.h> #define x 10       int ... 0 ; } Conditional compilation example in C language #include <stdio.h> int main ( ) { ...

    Yogesh Suneja - 23/11/2019 - 11:40

Pages