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.

#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
#include <time.h>
#include <math.h>

int main()
{   
  /*getLarger();*/
  /*getRandom();*/
  printDetails();
  getch(); 	
  return /*getLarger,getRandom,*/printDetails;
}

int printDetails()
{
    int Name[];
    Name[] = Tlhompho
    
    printf("My Details are %s",Name);
}

main() has to return an integer, not anything else such as char*. Replace that return statement with something like this: return 0;

Also the return type of your printDetails() function is int but you are not returning anything from that function. Either make the return type of that function void of return an int value from that function

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.