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 |
what is volatile in c language?
9 Answers Cap Gemini, HCL, Honeywell, TCS, Tech Mahindra,
What is the use of typedef in structure in c?
What is pragma in c?
what are the different storage classes in c?
main is a predefined or user define function if user defined why? if predefined whay?
What is the output of the following progarm? #include<stdio.h> main( ) { int x,y=10; x=4; y=fact(x); printf(ā%d\nā,y); } unsigned int fact(int x) { return(x*fact(x-1)); } A. 24 B. 10 C. 4 D. none
What's wrong with "char *p; *p = malloc(10);"?
What is a memory leak in structures? How can we rectify that?
What is Function Pointer? Explain with example?
Why preprocessor should come before source code?
What is bubble sort technique in c?
Given below are three different ways to print the character for ASCII code 88. Which is the correct way1) char c = 88; cout << c << " ";2) cout.put(88);3) cout << char(88) << " "; a) 1 b) 2 c) 3 d) constant