Is the following code legal?
struct a
{
int x;
struct a b;
}

Answer Posted / raghu

no this code is illegal.

legal one:

struct a
{
int x;
struct a *b;
}

Is This Answer Correct ?    26 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define recursion in c.

702


Write a programme using structure that create a record of students. The user allow to add a record and delete a record and also show the records in ascending order.

1620


What are the similarities between c and c++?

600


Explain a pre-processor and its advantages.

633


Write a program to check palindrome number in c programming?

601






How does selection sort work in c?

623


Explain what is wrong with this statement? Myname = ?robin?;

1027


Explain the difference between strcpy() and memcpy() function?

595


Draw a flowchart to produce a printed list of all the students over the age of 20 in a class .The input records contains the name and age of students. Assume a sentinel value of 99 for the age field of the trailer record

4742


Why is structure important for a child?

603


Why shouldn’t I start variable names with underscores?

625


What is meant by realloc()?

678


What are the uses of a pointer?

683


What are pointers?

634


What are enums in c?

663