An example of a function definition in C language is given
below:
char fun (int a, float b, int c)
{ /* body */ … }
Assuming that the only types allowed are char, int, float
(no arrays, no pointers, etc.), write a grammar for function
headers, i.e., the portion char fun(int a, …) in the
above example.:-/

Presumably the problem is designed so that you can learn how to specify a grammar given a limited syntax. If I solve it for you, you learn nothing.

Perhaps you haven't seen the large print pretty much everywhere on every forum that says we won't give homework help to those who don't show effort. So show us you've at least attempted it then we will help you.

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.