Print Using string copy and concate Commands

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

Questions by sweetysmarty   answers by sweetysmarty

Showing Answers 1 - 1 of 1 Answers

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();
}

  Was this answer useful?  Yes

Give your answer:

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

 

Related Answered Questions

 

Related Open Questions