char * get();
void main()
{
char*c;
c=get();
printf("%s",c);
}
char * get()
{
char ch[3]="km";
return(ch);
}
the string is not getting dereferenced by the pointer 'c',
i.e the function is not returning the address of string
void main()
{
char*c;
c=get();
printf("%s",c);
}
char * get()
{
char ch[3]="km";
return(ch);
}
the string is not getting dereferenced by the pointer 'c',
i.e the function is not returning the address of string
Comment