can we declare function inside structure of c programming