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 are the 4 types of unions?

702


What is %lu in c?

787


What is mean by data types in c?

650


List the variables are used for writing doubly linked list program.

1707


What are header files and explain what are its uses in c programming?

710






What is the difference between array and structure in c?

664


a direct address that identifies a location by means of its displacement from a base address or segment a) absolute address b) relative address c) relative mode d) absolute mode

763


How do you redirect a standard stream?

732


Did c have any year 2000 problems?

758


What do you mean by command line argument?

721


1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. The Logic should be written in Data Structures?

2027


What is openmp in c?

698


How many levels of indirection in pointers can you have in a single declaration?

698


Hai,I have done with my bachelor of commerce and planing to ms,please suggest me how to convince vo for shifting from commerce to computers. Visa on 8 DEC 2014  Npu university

1693


What is pointer to pointer in c?

744