Is the following code legal?
struct a
{
int x;
struct a b;
}
Answer Posted / 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 |
Post New Answer View All Answers
a function gets called when the function name is followed by a a) semicolon (;) b) period(.) c) ! d) none of the above
What do you mean by a local block?
Explain high-order bytes.
Is it better to bitshift a value than to multiply by 2?
Explain what are multibyte characters?
main use of recursive function a) processing speed high b) reduce program length/reduce repeated statements c) if you do not, use iterative methods like, for, while or do-while d) all the above
What is difference between union and structure in c?
Why main function is special give two reasons?
Differentiate between full, complete & perfect binary trees.
#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); }
Write a program that takes a 5 digit number and calculates 2 power that number and prints it(should not use big integers and exponential functions)
write a program to print largest number of each row of a 2D array
Differentiate between #include<...> and #include '...'
What is the difference between struct and typedef struct in c?
What is the use of parallelize in spark?