You are not logged in. Please login at www.codechef.com to post your questions!

×

need guidance CHSERVE

if(strcmp(c,"CHEF")==0) { char c[4]="COOK"; printf("%s",c); printf("\n"); }

why is it not able to execute this part of the program? is there any kind of an error due to which its not able to assign the string to the character? please help!

asked 20 Oct '18, 08:24

adnil_22's gravatar image

1★adnil_22
1
accept rate: 0%

toggle preview
Preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported
  • mathemetical formulas in Latex between $ symbol

Question tags:

×630
×3

question asked: 20 Oct '18, 08:24

question was seen: 49 times

last updated: 20 Oct '18, 08:24