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 |
about c language
how to find a 5th bit is set in c program
What is the output of below code? main() { static int a=5; printf("%3d",a--); if(a) main(); }
what is the output of printf("%d",(scanf("%d",10));
What is c method?
Why does everyone say not to use gets?
which will be first in c compiling ,linking or compiling ,debugging.
How can I do graphics in c?
c program to subtract between two numbers without using '-' sign and subtract function.
Difference between for loop and while loop?
program to find out date after adding 31 days to a date in the month of febraury also consider the leap year
How can I open files mentioned on the command line, and parse option flags?