which of the following statements is incorrect
a.typedef struct new{
int n1;
char n2;
} DATA;
b.typedef struct {
int n3;
char *n4;
}ICE;
c.typedef union {
int n5;
float n6;
} UDT;
d.#typedef union {
int n7;
float n8;
} TUDAT;
Answers were Sorted based on User's Feedback
Answer / saudip sen
choice d.
Reason:
The macro sign # is not applicable here.
Syntactical error!
| Is This Answer Correct ? | 11 Yes | 0 No |
Answer / phanitha
d is the right answer
# should not be present at starting.
| Is This Answer Correct ? | 10 Yes | 1 No |
Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10
What is structure data type in c?
Difference between malloc() and calloc() function?
Give the logic for this #include<stdio.h> #include<conio.h> void main() { clrscr(); int a=10,b; b=++a + ++a; printf("%d", b); getch(); } Output: 24......How?
Is c is a high level language?
Write a code to generate divisors of an integer?
What are extern variables in c?
How many header files are in c?
What would happen to X in this expression: X += 15; (assuming the value of X is 5)
Under what circumstances does a name clash occur?
triangle number finding program...
what is out put of the following code? #include class Base { Base() { cout<<"constructor base"; } ~Base() { cout<<"destructor base"; } } class Derived:public Base { Derived() { cout<<"constructor derived"; } ~Derived() { cout<<"destructor derived"; } } void main() { Base *var=new Derived(); delete var; }