C Programming Tutorial

 
 
 

Advanced Programming

Array

One dimensional array Two dimensional Array Two dimensional array pointers Array of pointers Print array Print Array - for loop Print array in reverse Print address array - for loop Multidimentional array - function Print address array - pointers Print reverse string of array Print array ascii value-without atoi Character array - upper case Multiplication table - 2D array Passing array to function Max or greatest value in array Merge sorted array Array of structure Array of pointers to string Array within a structure

String Programs

Copy string Substring of string String concatination Vowel in string Swap char in string Palindrome string Rotate string Bubble sort of strings Sorting of words Encode decode string Compress string

File Programs

Read write in 2 files Add,edit,delete,search in file Add,search using structure Append in file Merge file Count word,line,char in file Count record - struct fread() example fwrite() example fopen() example fclose() example fscanf() and fprintf() fseek() example Error handling in file op Find odd,even num Odd even numbers in file Max, min age in class Random numbers file Preprocessor in 2 files Encode decode in file

Bios Programming

biosequip( ) - sys confi biosdisk( ) - partition tbl info Pc type-bios data area File allocation table Telephone directory

TSR Programming

Interchange letters Interchange letters on screen Unload TSR on key press-keyboard Unload TSR - timer interrupt Activate, deactivate TSR Print alphabet from printer Repeat key press Keep caps on Make ctrl, alt key pressed

Interrupt Programming

Restart computer Conventional memory of sys Save IVT in file Print string-interrupt 21h Read char-interrupt 21h Read char with echo-interrupt 21h Delete file-interrupt 21h Delete directory-interrupt 21h Get set system date Show system configuration Search, delete file in dir Display multiple file in dir

Mouse Programming

Text mode mouse handling Graphics mode mouse handling Double click of mouse
 
 

Image

#include <stdio.h>
#include <conio.h>
#include <string.h>
void main(){
     char str1[20],str2[20],str3[40]=\"\";
     int len,i,j;
     clrscr();
     printf(\"*****Strings Concatination Function*****\\n\\n\");
     printf(\"Enter string1: \");
     scanf(\"%s\",str1);
     printf(\"Enter string2: \");
     scanf(\"%s\",str2);

     for(i=0,j=0;str1[i]!=\'\\0\';i++,j++)
     str3[j] = str1[i];

     for(i=0;str2[i]!=\'\\0\';i++,j++)
     str3[j] = str2[i];

     str3[j] = \'\\0\';
     len = j;

     printf(\"\\n\\nAfter Concatination : %s\",str3);
     printf(\"\\n\\nLength of concated string is %d\",len);
     getch();
}

    Related Post:
  1. PROGRAM TO READ THE PRICE OF AN ITEM IN DECIMAL FORM LIKE (10) AND PRINT THE OUTPUT IN PAISE LIKE(1000)

  2. Program to multiply matrix (10 x 10) with a vector using variation in Loop Splitting using multiple barriers

  3. Program to calculate range of values

  4. Program of hanoi tower in dfs

  5. Program that implements breadth first search algorithm

  6. Program to calculate months in a provided number of days from user

  7. Example 2 to display array values and address of an array using pointers

  8. Function to find the binary equivalent of a given decimal integer and display it

  9. Program to get and set System Date using Interrupt 21h

  10. Program to append one string s2 to another string s1 i.e. concatenation of two strings. (Use strcat function from string.h)

  11. Program to copy one string s2 to another string s1 without using strcopy function

  12. Basic GAUSS ELIMINATION METHOD, GAUSS ELIMINATION WITH PIVOTING, GAUSS JACOBI METHOD, GAUSS SEIDEL METHOD

  13. Program of histogram by calculating the partial histograms and consolidating in the end to get the final histogram

  14. Program for Number Conversion from Decimal to Binary, Decimal to Octal, Decimal to Hexa, Binary to Octal, Binary to Hexa, Octal to Hexa

  15. FUNCTION TABULATED AT EQUAL INTERVAL USING BACKWARD DIFFERENCE BETWEEN TWO VALUE

  16. Program to print triangle in opposite pattern

  17. Program to implement a multi-access threaded queue with multiple threads inserting and multiple threads extracting from the queue

  18. Program to find the number of nodes in the linked list using recursion

  19. Program to compare strings, concatenate strings, copy string and display part of a string

  20. Program to find first n prime numbers

 
 
Didn't find what you were looking for? Find more on Program to concatenate two strings