GeekInterview.com
Series: Subject: Topic:
Question: 23 of 183

Print Using string copy and concate Commands

How will you print TATA alone from TATA
POWER using string copy and concate commands in C?

Asked by: sweetysmarty | Member Since Apr-2010 | Asked on: Apr 19th, 2010

View all questions by sweetysmarty   View all answers by sweetysmarty

Showing Answers 1 - 1 of 1 Answers
Sandhya.Kishan

Answered On : Jun 15th, 2012

View all answers by Sandhya.Kishan

include
#include
#include

int main()
{

char myString[] = "TATA POWER";
char output[10];

strcpy(output,myString);
output[4] = ;

printf("OUTPUT :%s
", output);
printf("ORGINAL STRING :%s", myString);

getch();
}

  
Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.