My Name Is Salman Masood , I am Computer Science &Amp; Maths Graduate from University of Karachi, Pakistan , Teaching Is My Passion and My Aim Is to Deliver All My Knowledge among Those Students Who Can'T Afford Tutors or Expensive Institute Fees. I Will Be Keep Sharing My All Knowledge and Information with You .... Remember Me in Your Prayers !
Friday, 25 May 2018
Check Palindrome using string function String copy , string Reverse, String
#include<stdio.h>
#include<conio.h>
#include <string.h>
main()
{
char s[50];
char d[50];
char t[50];
l1:
printf("Enter the string: ");
gets(s);
strcpy(t,s);
strcpy(d,strrev(s));
if(strcmp(t,d)==0)
{
printf("INPUT IS PALINDROME");
}
else
{
printf("INPUT IS NOT PALINDROME");
}
printf("\n\n\--------------------\n\n");
goto l1;
}
String Concat join function in C Language
#include<stdio.h>
#include<conio.h>
#include <string.h>
main()
{
char f[50];
char l[50];
printf("Enter the first name: ");
gets(f);
printf("\nEnter the Last name: ");
gets(l);
strcat(f,l);
puts(l);
}
Copy string from source to destination STRLEN ,STRCPY STRING FUNCTION IN C
#include<stdio.h>
#include<conio.h>
#include <string.h>
main()
{
char source[50];
printf("Enter the string: ");
gets(source);
int x=strlen(source);
char dest[x];
strcpy(dest,source);
printf("\nsource string is: %s ",source);
printf("\nDestination string is: %s ",dest);
}
Subscribe to:
Posts (Atom)
Pass Dynamically Added Html Table Records List To Controller In Asp.net MVC
Controller Code: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using ...
-
Load event: pictureBox3.Image = Image .FromFile( @"C:\Users\salman\Documents\Visual Studio 2013\Projects\WindowsFormsApplication3\W...