Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


to write a program to search a character in a string and to
print till the character in the string using pointers in c
program



to write a program to search a character in a string and to print till the character in the string..

Answer / guest

char str[20]="some string";
char *ptr=str;
char search_char=e;
for(int t=0;i<strlen(str);i++)
{
if((*ptr)==e) (*ptr)=\0' //null charachter
}
printf("%s",str);

Is This Answer Correct ?    5 Yes 4 No

Post New Answer

More Engineering AllOther Interview Questions

what are the various technique used for inter process communication?

0 Answers  


T is a tree and V is a vertex of T of maximum degree in T, say the degree of V in n. Prove that T has atleast n vertices of degree 1.

0 Answers   TCS,


tell me the e book for data structure (basic)

0 Answers  


Can any1 say how this prog logic works... i am weak in thread concept...pls explain step by step

1 Answers  


Please send the details and fee for Intools training course..I would like to do the course in second week of jUNE 2010.

0 Answers  


Which of the following statements are true about constructors and methods? 1)A constructor has it's own name, a return type and is invoked using the new operator. 2)A function has it's own name, a return type and is invoked using the dot operator. 3)A constructor has the name of the class, no return type and is invoked using the new operator.

4 Answers   CSE,


what is locative information on web.........?

0 Answers  


As a good company employee, can you report your supervisor to the company management if he or she is going against the company interest in his or her actions?

0 Answers   GE,


WHAT ARE THE ADVANTAGE OF SYSTEM ENGINEER

0 Answers  


Write steps of retrieving data using ado.net?

0 Answers  


in single linked list , each node contains data and address of next node. if middle of list the node is damaged/crashed then how to find where the link is failed and how to get the all the data which is stored after the crashed node?

0 Answers  


What is the use of SUN Server

0 Answers   IBM,


Categories
  • Civil Engineering Interview Questions Civil Engineering (5086)
  • Mechanical Engineering Interview Questions Mechanical Engineering (4456)
  • Electrical Engineering Interview Questions Electrical Engineering (16639)
  • Electronics Communications Interview Questions Electronics Communications (3918)
  • Chemical Engineering Interview Questions Chemical Engineering (1095)
  • Aeronautical Engineering Interview Questions Aeronautical Engineering (239)
  • Bio Engineering Interview Questions Bio Engineering (96)
  • Metallurgy Interview Questions Metallurgy (361)
  • Industrial Engineering Interview Questions Industrial Engineering (259)
  • Instrumentation Interview Questions Instrumentation (3014)
  • Automobile Engineering Interview Questions Automobile Engineering (332)
  • Mechatronics Engineering Interview Questions Mechatronics Engineering (97)
  • Marine Engineering Interview Questions Marine Engineering (124)
  • Power Plant Engineering Interview Questions Power Plant Engineering (172)
  • Textile Engineering Interview Questions Textile Engineering (575)
  • Production Engineering Interview Questions Production Engineering (25)
  • Satellite Systems Engineering Interview Questions Satellite Systems Engineering (106)
  • Engineering AllOther Interview Questions Engineering AllOther (1379)