I have tried the below code, but it doesn't work. Shows error that "initializer element is not constant" if I give const .. it still doesn't work. Please help.
#include<stdio.h>
int* ret()
{
    int x=0;
    int y=0;
    int b[]={x,y};
    return b;
}
int main()
{
    printf("My name is sudha\n\n");
    int* m=ret();
    for(int i=0;i<2;i++)
    printf("%d",m[i]);
    return 0;
}
 
     
    