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
What is the difference between strcpy() and memcpy() function in c programming?
Why we use int main and void main?
Can the curly brackets { } be used to enclose a single line of code?
Is javascript written in c?
What is modeling?
Is it better to use malloc() or calloc()?
Why we use stdio h in c?
`write a program to display the recomended action depends on a color of trafic light using nested if statments
How can you pass an array to a function by value?
What is pointer & why it is used?
to find the closest pair
Sir,please help me out with the code of this question. Write an interactive C program that will encode or decode multiple lines of text. Store the encoded text within a data file, so that it can be retrieved and decoded at any time. The program should include the following features: (a) Enter text from the keyboard, encode the text and store the encoded text in a data file. (b) Retrieve the encoded text and display it in its encoded form. (c) Retrieve the encoded text, decode it and then display the decoded text. (d) End the computation. Test the program using several lines of text of your choice.
What is the difference between ++a and a++?
Can you tell me how to check whether a linked list is circular?
Explain what is the difference between a string and an array?