Sunday, October 31, 2010

Try fast Copying Experience

Friends, if you are working with slow machine,yes! Or your m/c is latest but gives slow copying then dont worry..U Are at right place now...
Try ...
TeraCopy.
DOWNLOAD FREE

Saturday, October 30, 2010

Boost Your Computer Speed

To clean your temp files,cache memory,free disk space,fast deletion, customize your desktop,enable/disable programs,and many more...




Friday, October 29, 2010

Increase your RAM

Yes it is true that you can increase your ram as per your requirement like games, heavy softwares, you can allow your pendrive memory to be as a ram, and can use remaining as storage. When no need just disconnect it for normal operation plz try this..

eBooster

Thursday, October 28, 2010

Increase your Internet Downloading speed

You can increase your downloading speed twice than normal very nice for slow net connections.
Internet Download Manager.

Wednesday, October 27, 2010

Recover deleted files from any media

Recover the files of any size deleted by virus or deleted by you fastly..
DOWNLOAD FREE

XOR list example

#include
#include
#include

struct xnode
{
int data;
unsigned long direction;
};

struct xnode *add_data(int data, struct xnode* list);
void walk_list(struct xnode *list);

int main(void)
{

struct xnode *l2 = add_data(2, NULL);
struct xnode *l1 = add_data(1, l2);
struct xnode *l3 = add_data(3, l2);
struct xnode *l4 = add_data(4, l3);

printf("front -> back....\n");
walk_list(l1);
printf("back -> front....\n");
walk_list(l4);

return 0;
}

struct xnode *add_data(int data, struct xnode *list)
{
struct xnode *newxnode = malloc(sizeof(struct xnode));

assert(newxnode);
newxnode->direction = (unsigned long)list;
newxnode->data = data;

if(list != NULL)
list->direction ^= (unsigned long)newxnode;

return newxnode;
}

void walk_list(struct xnode *list)
{
unsigned long prev = 0;

while(list != NULL) {
unsigned long next = prev ^ list->direction;
printf("%d ", list->data);
prev = (unsigned long)list;
list = (struct xnode *)next;
}

printf("\n");
}

Tuesday, October 26, 2010

WAP to SWAP the three digit number


void main ()

{

int b,r,n,r1,r2;

clrscr ();

printf ("Enter the Value: ");

scanf ("%d",&n);

r=n%10;

n=n/10;

r1=n%10;

n=n/10;

r2=n%10;

n=n/10;

b=(r*100)*(r2*10)+(r2);

printf ("%d%d%d",r,r1,r2);

getch ();

}

Monday, October 25, 2010

WAP to sum of five elements of an array


void main ()

{

int no[5],i,sum;

clrscr ();

for (i=0;i<=4;i++)

{

printf ("Enter Element: ");

scanf ("%d",&no[i]);

}

sum=no[0]+no[1]+no[2]+no[3]+no[4];

printf ("\nSum of five Elements: %d",sum);

getch ();

}

Sunday, October 24, 2010

WAP to Sum, Subtract, Multiply & Division of two numbers (5 Variables)


#include

void main ()

{

int a,b,c,d,e,f;

clrscr();

printf ("Enter A: ");

scanf ("%d",&a);

printf ("Enter B: ");

scanf ("%d",&b);

c=a+b;

d=a-b;

e=a*b;

f=a/b;

printf ("\nSum is : %d",c);

printf ("\nSubtraction is : %d",d);

printf ("\nMultiplication is : %d",e);

printf ("\nDivision is : %d",f);

getch ();

}

Saturday, October 23, 2010

WAP to Reverse of any number using while loop


void main ()

{

int no,r,res;

clrscr ();

printf ("Enter any value: ");

scanf ("%d",&no);

r=res=0;

while (no>0)

{

r=no%10;

no=no/10;

res=(res*10)+r;

}

printf ("\nReverse is %d",res);

getch ();

}

Friday, October 22, 2010

WAP to print value of multiple data types

#include

#include

void main ()

{

int a=10;

float d=40.50;

char ch='A';

double dbl=78.9786;

long lng=7897711;

char nm [10]="JIMMY";

clrscr ();

printf ("\nInteger value is %d",a);

printf ("\nFloat value is %.2f",d);

printf ("\nCharacter value is %c",ch);

printf ("\nDouble value is %.4lf",dbl);

printf ("\nLong value is %ld",lng);

printf ("\nString value is %s",nm);

getch ();

}

Thursday, October 21, 2010

WAP to print the detail of the programmer if the given number is 464


void main ()

{

int pass;

clrscr();

do

{

printf ("Enter Password to see the detail of programmer:\n");

scanf ("%d",&pass);

}

while (pass!=464);

printf ("\nJagjeet Singh");

printf ("\nB.Sc. (I.T.)\nPunjab Technical University");

getch ();

}

Wednesday, October 20, 2010

WAP to print table of 5


void main ()

{

int a,tab;

clrscr ();

a=1,tab=0;

while (a<=10)

{

tab=5*a;

a++;

printf ("%d\n",tab);

}

getch ();

}

Tuesday, October 19, 2010

WAP to print Stars on screen

void main ()

{

int i,j;

clrscr();

for (j=1;j<4;j++)

{

for (i=1;i<=5;i++)

{

printf ("*");

}

printf ("\n");

}

getch ();

}

Monday, October 18, 2010

WAP to print series from start to end using do-while loop

void main ()

{

int a,b;

clrscr ();

printf ("Enter Start: ");

scanf ("%d",&a);

printf ("Enter End: ");

scanf ("%d",&b);

do

{

printf ("%d\n",a);

a++;

}

while (a<=b);

getch ();

}

Sunday, October 17, 2010

WAP to print series from 20 to 1


#include

void main ()

{

int a;

clrscr ();

a=20;

while (a>=1)

{

printf ("\n%d",a);

a--;

}

getch ();

}

Saturday, October 16, 2010

WAP to print series from 1 to 10 and skip 5 & 7

void main ()

{

int a;

clrscr ();

for (a=1;a<=10;a++)

{

if (a==5 || a==7)

continue;

printf ("%d\n",a);

}

getch ();

}

Friday, October 15, 2010

WAP to print series from 1 to 10 & find its square and cube

void main ()

{

int a=1,sqr=0,cube=0;

clrscr ();

while (a<=10)

{

sqr=pow(a,2);

cube=pow(a,3);

printf ("%d\t %d\t %d\n",a,sqr,cube);

a++;

}

getch ();

}

Thursday, October 14, 2010

WAP to print series from 1 to 10 and break on 5


void main ()

{

int a;

clrscr ();

for (a=1;a<=10;a++)

{

if (a==5)

break;

printf ("%d\n",a);

}

getch ();

Wednesday, October 13, 2010

WAP to print Odd numbers from 1 to 20


void main ()

{

int a;

clrscr ();

a=1;

while (a<=20)

{

if (a%2==1)

printf ("\n%d",a);

a++;

}

getch ();

}

Tuesday, October 12, 2010

WAP to print numbers from 1-50 which are divided by 7


void main ()

{

int a;

clrscr ();

a=1;

while (a<=50)

{

if (a%7==0)

printf ("%d\n",a);

a++;

}

getch ();

}

Monday, October 11, 2010

WAP to print name and display on screen

void main ()

{

char name [15];

clrscr ();

printf ("Enter your name: ");

gets (name);

printf ("\nme is: %s",name);

getch ();

}

Sunday, October 10, 2010

WAP to print fabbonic series from 1 to 55


void main ()

{

int a,b,c;

clrscr ();

a=0;b=1;c=1;

printf ("%d\n%d",a,b);

while (c<55)

{

c=a+b;

printf ("\n%d",c);

a=b;

b=c;

}

getch ();

}

Saturday, October 9, 2010

WAP to print Even & Odd numbers from 20 to 1

void main ()

{

int a;

clrscr ();

a=20;

while (a>=1)

{

if (a%2==0)

printf ("%d\t",a);

else

printf ("%d\n",a);

a--;

}

getch ();

}

Friday, October 8, 2010

WAP to print ASCII code from 0 to 255

void main ()

{

int i=0,count=0;

clrscr ();

for(i=0;i<=255;i++)

{

if (count>24)

{count=0;getch();}

else

{printf("%d=%c\n",i,i);

count++;}

}

getch ();

}

Thursday, October 7, 2010

WAP to print any name on screen 10 times

void main ()

{

int a=1;

clrscr();

do

{

printf ("Jagjeet\n");

a++;

}

while (a<=10);

getch ();

}

Wednesday, October 6, 2010

WAP TO PRINT ANY MESSAGE ON SCREEN


#include

void main ()

{

clrscr ();

printf ("Hello");

getch();

}

Tuesday, October 5, 2010

WAP to find the length of any string

void main ()

{

char ch [20];

int l;

clrscr ();

printf ("Enter String: ");

gets (ch);

l=strlen(ch);

printf ("Length of string is %d",l);

getch ();

}

Monday, October 4, 2010

WAP to find the factorial of the number (1x2x3x4)


void main ()

{

int fact=1,no;

clrscr();

printf ("Enter any number: ");

scanf ("%d",&no);

do

{

fact=fact*no;

no--;

}

while (no>0);

printf ("\nFactorial is %d",fact);

getch ();

}

Sunday, October 3, 2010

WAP to find that number is prime or not (7,11,13,17,19 etc.)

void main ()

{

int no,i=2;

clrscr ();

printf ("Enter Number: ");

scanf ("%d",&no);

while (i<=no)

{

if (no%i==0)

break;

i++;

}

if (i==no)

printf ("Number is Prime");

else

printf ("Number is not Prime");

getch ();

}

Saturday, October 2, 2010

WAP to find that number is palandrom or not (121=121)

#include

void main ()

{

int no,r,res,temp=0;

clrscr ();

printf ("Enter Number: ");

scanf ("%d",&no);

r=res=0;

temp=no;

while (no>0)

{

r=no%10;

no=no/10;

res=(res*10)+r;

}

if (temp==res)

printf("Number is Palandrom");

else

printf("Number is not Palandrom");

getch ();

}

Friday, October 1, 2010

WAP to find string within a string

void main ()

{

char *k="Borland International", *g, *p;

clrscr ();

printf ("Enter string to find: ");

gets (g);

p=strstr(k,g);

printf ("%s",p);

getch ();

}

Related Posts Plugin for WordPress, Blogger...