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

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice