Is the following code legal?
struct a
{
int x;
struct a b;
}
Answers were Sorted based on User's Feedback
Answer / raghu
no this code is illegal.
legal one:
struct a
{
int x;
struct a *b;
}
| Is This Answer Correct ? | 26 Yes | 7 No |
Answer / 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 |
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.
0 Answers Sikkim Manipal University,
How many types of errors are there in c language? Explain
What is n in c?
Discuss the function of conditional operator, size of operator and comma operator with examples.
1)which of following operator can't be overloaded. a)== b)++ c)?! d)<=
given the piece of code int a[50]; int *pa; pa=a; to access the 6th element of the array which of the following is incorrect? a.*(a+5) b.a[5] c.pa[5] d.*(*pa + 5)
write a program to display the array elements in reverse order in c language
Tell me when is a void pointer used?
In scanf h is used for
How was c created?
What is true about the following C Functions (a) Need not return any value (b) Should always return an integer (c) Should always return a float (d) Should always return more than one value
A marketing company wishes to construct a decision table to decide how to treat clients according to three characteristics: Gender, City Dweller, and age group: A (under 30), B (between 30 and 60), C (over 60). The company has four products (W, X, Y and Z) to test market. Product W will appeal to female city dwellers. Product X will appeal to young females. Product Y will appeal to Male middle aged shoppers who do not live in cities. Product Z will appeal to all but older females.