1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

return makes integer from pointer without a cast

Discussion in 'C' started by Tlhoks, Aug 28, 2010.

  1. Tlhoks

    Tlhoks New Member

    Joined:
    Aug 28, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Please assist Iam getting this "13 C:\Dev-Cpp\main1.c [Warning] return makes integer from pointer without a cast " from the program below when i try to compile it.


    Code:
    int main()
    {   
      /*getLarger();*/
      /*getRandom();*/
      printDetails();
      getch();         
      return /*getLarger,getRandom,*/printDetails;
    }
    
    int printDetails()
    {
        int Name[];
        Name[] = Tlhompho
        
        printf("My Details are %s",Name);
    }
     

Share This Page