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

Answer Posted / preeti

no. It is illegal ..
Struct shd be ended by a semi colon ..

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

Is This Answer Correct ?    8 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the right type to use for boolean values in c? Is there a standard type?

567


Compare array data type to pointer data type

601


What is volatile variable in c with example?

589


What is difference between class and structure?

571


Can we use any name in place of argv and argc as command line arguments?

610






Explain how can I convert a string to a number?

645


How variables are declared in c?

573


What is openmp in c?

613


Can we declare variable anywhere in c?

538


What is dynamic variable in c?

568


What is a string?

667


What is the general form of #line preprocessor?

588


How can I trap or ignore keyboard interrupts like control-c?

620


pgm to find number of words starting with capital letters in a file(additional memory usage not allowed)(if a word starting with capital also next letter in word is capital cann't be counted twice)

1864


What is the easiest sorting method to use?

636