Earn by twitter on twivert

Sign up for PayPal and start accepting credit card payments instantly.

Sunday, November 14, 2010

WAP to search a character in a string


/*WAP to search a character in a string*/
#include<stdio.h>
#include<conio.h>
#include<string.h>

main()
{
 char *ptr, str[50];
 int ch;
 // Input of String & character
 printf("\n Enter the String \n");
 gets(str);
 printf("\n Enter the character to search ");
 ch = getchar();
 // Searching the character
 ptr = strchr(str,ch);
 if(ptr == NULL)
  printf("\n Not Found");
 else
  printf("\n The character %c is at the position %d\n",ch,ptr-str);
 getch();
 return 0;
}

bc command for calculation in linux


bc command for calculation in linux
cmd---------


$bc

e.g---------
$bc
2+5
7 //output

ADS

How to earn online

How to earn online:
Step - 1 :
signup for PayPal, to recieve your online earning
click here:
https://www.paypal.com/in/mrb/pal=CZ7224TZBMCBL
step - 2 : Singup these 4 sites & earn & enjoy! Read site to know how to earn.
1. trekpay
Earn up to $0.02 (2 cents) per click.
http://www.trekpay.com/?ref=34690
2. neobux
Earn up to $0.02 (2 cents) per click.
Click here:
http://www.neobux.com/?r=Moneyearner786

AddMe

Bookmark and Share