Is the following code legal?
struct a
{
int x;
struct a b;
}
Answer / susie
Answer :
No
Explanation:
Is it not legal for a structure to contain a member
that is of the same
type as in this case. Because this will cause the structure
declaration to be recursive without end.
| Is This Answer Correct ? | 1 Yes | 0 No |
#define clrscr() 100 main() { clrscr(); printf("%d\n",clrscr()); }
#define a 10 void foo() { #undef a #define a 50 } int main() { printf("%d..",a); foo(); printf("%d..",a); return 0; } explain the answer
can u give me the c codings for converting a string into the hexa decimal form......
Ramesh’s basic salary is input through the keyboard. His dearness allowance is 40% of basic salary, and house rent allowance is 20% of basic salary. Write a program to calculate his gross salary.
how can i search an element in an array
2 Answers CTS, Microsoft, ViPrak,
Derive expression for converting RGB color parameters to HSV values
main() { char *p="GOOD"; char a[ ]="GOOD"; printf("\n sizeof(p) = %d, sizeof(*p) = %d, strlen(p) = %d", sizeof(p), sizeof(*p), strlen(p)); printf("\n sizeof(a) = %d, strlen(a) = %d", sizeof(a), strlen(a)); }
Who could write how to find a prime number in dynamic array?
main() { unsigned int i=10; while(i-->=0) printf("%u ",i); }
Write a single line c expression to delete a,b,c from aabbcc
how to concatenate the two strings
main() { extern int i; i=20; printf("%d",i); }