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 |
What are the preprocessor categories?
What is #define used for in c?
Which of these statements are false w.r.t File Functions? i)fputs() ii)fdopen() iii)fgetpos() iv)ferror() A)ii B)i,ii C)iii D)iv
void main() { int x=25,y=32; clrscr(); x=x++ + y++; y=++x + ++y; printf("%d%d",x,y); }
Write a program to check whether a number is prime or not using c?
write a program that will print %d in the output screen??
implement general tree using link list
if function is declared as static in one source file, if I would like to use the same function in some other source file...is it possible....how ?
What are dangling pointers? How are dangling pointers different from memory leaks?
Why do we use main function?
where can function pointers be used?
In a byte, what is the maximum decimal number that you can accommodate?