Answered    You can buy a ready-made answer or pick a professional tutor to order an original one.
QUESTION

programs show error please help me

i am run c programs that is  

#include <stdio.h>

#include <stdlib.h>

int main ()

/*

this is my first program

this is awesome*/

/* these statements "/* and *" used tp enter the comments before header file */

{

    char name[18]="malik umer farooq";

    printf("my name is %s  \n",name);

    name[2] = 'z';

    printf("my name is %s  \n",name);

    char food[10] = "tona";

     printf("best food is  %s  \n",food);

    strcpy(food "bonna");

      printf("best food is  %s  \n",food);

    return 0;

}                                                                          

showing error please help me

Show more >
  • Prof Nelson
    Prof Nelson
    11 orders completed
    $98.00
    ANSWER
    Tutor has posted answer for $98.00. See answer's preview

    ********* Code and ***********

    Click here to download attached files:

    Corrected Code.txt

  • $2.00
    ANSWER
    Tutor has posted answer for $2.00. See answer's preview

    **** the *** *****

    #include

    ***************

    ********

    <stdlibh> ********

    <stringh> int

    **** ()

    *** **** is

    **

    ***** ******** **** is **********

    ** ***** **********

    ******** *** *" used ** ***** *** comments ****** ****** file *** ** **** ********************

    umer

    ************** *************** **** **

    ** *************** name[2] * *************

    ***************

    name is **

    \n"name); **** ******** * "tona";

    *****************

    **** is %s ***************

    strcpy(food"bonna"); ***************** **** is **

    ***************

    ******

    *** *

Learn more effectively and get better grades!

Ask a Question