EmbLogic's Blog

int main()

{

int value=100;

printf(“value in decimal is:%d\n”,value);

printf(“value in hexa is:%x\n”,value);

printf(“value in octal is:%o\n”,value);

return 0;

}

in this program i m getting the following error

undefined reference to print

ld returned 1 exit status

how can i remove dis error?

 

 

 

 

 

4 Responses to

  1. zaffer says:

    see if u are using print or printf

  2. prateek kathuria says:

    i have used the printf but still it is giving me the same error

  3. hemant.kumar says:

    it shouldn’t give any error….its running successfully..

Leave a Reply to hemant.kumar Cancel reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>