Is the following code legal?
struct a
{
int x;
struct a b;
}
Answer Posted / raghu
no this code is illegal.
legal one:
struct a
{
int x;
struct a *b;
}
Is This Answer Correct ? | 26 Yes | 7 No |
Post New Answer View All Answers
Is it possible to pass an entire structure to functions?
What functions are used for dynamic memory allocation in c language?
a parameter passed between a calling program and a called program a) variable b) constant c) argument d) all of the above
What is function and its example?
Is it acceptable to declare/define a variable in a c header?
What is the meaning of typedef struct in c?
pgm to find number of words starting with capital letters in a file(additional memory usage not allowed)(if a word starting with capital also next letter in word is capital cann't be counted twice)
What is a header file?
Write a program to swap two numbers without using the third variable?
What is function what are the types of function?
What is #define used for in c?
What is the use of clrscr?
7-Given an index k, return the kth row of the Pascal's triangle. For example, when k = 3, the row is [1,3,3,1]. For reference look at the following standard pascal’s triangle.
#include main() { int *p, *c, i; i = 5; p = (int*) (malloc(sizeof(i))); printf(" %d",*p); *p = 10; printf(" %d %d",i,*p); c = (int*) calloc(2); printf(" %d ",*c); }
Explain how can I read and write comma-delimited text?