Jenny's Coding World - A Ultimate Blog for Computer Tricks, Hacks, Tips, SEO, Softwares for Computer & Mobile.
Monday, 23 April 2012
Sunday, 22 April 2012
C program for compare two string
SOURCE CODE:
#include<stdio.h>
#include<conio.h>
#include<string.h>
void main()
{
int c,flag=0,i;
char a[25],b[25];
clrscr();
printf("Enter first string\n");
gets(a);
#include<stdio.h>
#include<conio.h>
#include<string.h>
void main()
{
int c,flag=0,i;
char a[25],b[25];
clrscr();
printf("Enter first string\n");
gets(a);
Labels:
C
C program for replace character of string
SOURCE CODE:
#include<stdio.h>
#include<conio.h>
void main()
{
int i=0;
char str[10],och,nch;
clrscr();
printf("Enter a string:");
scanf("%s",str);
flushall();
#include<stdio.h>
#include<conio.h>
void main()
{
int i=0;
char str[10],och,nch;
clrscr();
printf("Enter a string:");
scanf("%s",str);
flushall();
Labels:
C
C program for combination of two string
SOURCE CODE:
#include<stdio.h>
#include<conio.h>
#include<string.h>
void main()
{
int i=0,j=0;
char a[25],b[25];
clrscr();
printf("Enter first string\n");
gets(a);
#include<stdio.h>
#include<conio.h>
#include<string.h>
void main()
{
int i=0,j=0;
char a[25],b[25];
clrscr();
printf("Enter first string\n");
gets(a);
Labels:
C
C program for 2d array replace by zero
SOURCE CODE:
#include<stdio.h>
#include<conio.h>
void main()
{
int i,j,a[3][3];
clrscr();
for(i=0;i<3;i++)
{
for(j=0;j<3;j++)
{
#include<stdio.h>
#include<conio.h>
void main()
{
int i,j,a[3][3];
clrscr();
for(i=0;i<3;i++)
{
for(j=0;j<3;j++)
{
Labels:
C
C program to find average using array
SOURCE CODE:
#include<stdio.h>
#include<conio.h>
void main()
{
int a[15],sum=0,i;
float avg;
clrscr();
printf("Enter 20 number:");
for(i=0;i<20;i++)
{
#include<stdio.h>
#include<conio.h>
void main()
{
int a[15],sum=0,i;
float avg;
clrscr();
printf("Enter 20 number:");
for(i=0;i<20;i++)
{
Labels:
C
C program to print following pattern of numbers
1
12
123
1234
12345
SOURCE CODE:
#include<stdio.h>
#include<conio.h>
void main();
{
int i,j;
clrscr();
for(i=1;i<=5;i++)
{
for(j=1;j<=i;j++)
{
12
123
1234
12345
SOURCE CODE:
#include<stdio.h>
#include<conio.h>
void main();
{
int i,j;
clrscr();
for(i=1;i<=5;i++)
{
for(j=1;j<=i;j++)
{
Labels:
C
C program to find you got distiction or not
SOURCE CODE:
include<stdio.h>
#include<conio.h>
void main()
{
float c,e,m,t,p;
clrscr();
printf("enter marks of C.P.U. :");
scanf("%f",&c);
printf("enter marks of E.E.E. :");
scanf("%f",&e);
include<stdio.h>
#include<conio.h>
void main()
{
float c,e,m,t,p;
clrscr();
printf("enter marks of C.P.U. :");
scanf("%f",&c);
printf("enter marks of E.E.E. :");
scanf("%f",&e);
Labels:
C
C program for swap two values without using any other value
SOURCE CODE:
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b;
clrscr();
printf("enter value for a :");
scanf("%d",&a);
printf("enter value for b :");
scanf("%d",&b);
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b;
clrscr();
printf("enter value for a :");
scanf("%d",&a);
printf("enter value for b :");
scanf("%d",&b);
Labels:
C
Subscribe to:
Posts
(
Atom
)