Is the following code legal?
typedef struct a
{
int x;
aType *b;
}aType
Answer / susie
Answer :
No
Explanation:
The typename aType is not known at the point of declaring
the structure (forward references are not made for typedefs).
| Is This Answer Correct ? | 0 Yes | 1 No |
#define FALSE -1 #define TRUE 1 #define NULL 0 main() { if(NULL) puts("NULL"); else if(FALSE) puts("TRUE"); else puts("FALSE"); }
respected sir, i did my MCA in 2013 when i am going to attend to an interview i was asked about my project how will i explain my project could please help me in this and my project title is "Social Networking Site For Social Responsibility"
how to create a 3x3 two dimensional array that will give you the sums on the left and bottom columns
main() { char a[4]="HELL"; printf("%s",a); }
Is this code legal? int *ptr; ptr = (int *) 0x400;
main() { char *p; p="%d\n"; p++; p++; printf(p-2,300); }
how to delete an element in an array
Is the following code legal? typedef struct a { int x; aType *b; }aType
main() { char string[]="Hello World"; display(string); } void display(char *string) { printf("%s",string); }
given integer number,write a program that displays the number as follows: First line :all digits second line : all except the first digit . . . . Last line : the last digit
Print an integer using only putchar. Try doing it without using extra storage.
main() { int i=3; switch(i) { default:printf("zero"); case 1: printf("one"); break; case 2:printf("two"); break; case 3: printf("three"); break; } }