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 is the difference between null pointer and wild pointer?
Write code for finding depth of tree
Is c pass by value or reference?
Calculate 1*2*3*____*n using recursive function??
how to make a scientific calculater ?
what is a function pointer and how all to declare ,define and implement it ???
15.what is the disadvantage of using macros? 16.what is the self-referential structure? 17.can a union be self-referenced? 18.What is a pointer? 19.What is the Lvalue and Rvalue? 20.what is the difference between these initializations? 21.Char a[]=”string”; 22.Char *p=”literal”; 23.Does *p++ increment p, or what it points to?
what is the code for getting the output as * ** ***
What is the correct code to have following output in c using nested for loop?
I have written a pro*C program to fetch data from the cursor. where in i have used the concept of BULK FETCH.... each FETCH statement is taking lots of time to fetch specified number of rows at...
3. Program to print all possible substrings. ex: String S St Str Stri Strin String t tr tri trin tring r
Write a Program to print this triangle: * ** * **** * ****** * ******** * ********** use two nested loops.
12 Answers MIT, TCS,