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.:-/
sarnath1980
0
Newbie Poster
Recommended Answers
Jump to PostPresumably 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.
All 2 Replies
Reply to this topic
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.