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



which of the following statements is incorrect a.typedef struct new{ int n1; char n2; ..

Answer / saudip sen

choice d.

Reason:
The macro sign # is not applicable here.
Syntactical error!

Is This Answer Correct ?    11 Yes 0 No

which of the following statements is incorrect a.typedef struct new{ int n1; char n2; ..

Answer / phanitha

d is the right answer
# should not be present at starting.

Is This Answer Correct ?    10 Yes 1 No

which of the following statements is incorrect a.typedef struct new{ int n1; char n2; ..

Answer / mannucse

d

Is This Answer Correct ?    10 Yes 2 No

which of the following statements is incorrect a.typedef struct new{ int n1; char n2; ..

Answer / sanath

Bot a and d are wrong.

Is This Answer Correct ?    5 Yes 5 No

which of the following statements is incorrect a.typedef struct new{ int n1; char n2; ..

Answer / shruti

b and d are wrong..

Is This Answer Correct ?    2 Yes 6 No

Post New Answer

More C Interview Questions

Is null always equal to 0(zero)?

0 Answers  


Explain the advantages of using macro in c language?

0 Answers  


what is the difference between const volatile int i & volatile const int j;

2 Answers   HCL,


How can my program discover the complete pathname to the executable from which it was invoked?

0 Answers  


To find whether a number is even or odd without using any conditional operator??

12 Answers   College School Exams Tests, IBM,






what is the function of pragma directive in c?

0 Answers  


without using control structures and control structures find the max and min of given 2 nos

1 Answers   HCL,


program for swapping two strings by using pointers in c language

1 Answers  


What is the difference between functions abs() and fabs()?

0 Answers  


why return type of main is not necessary in linux

0 Answers   TCS,


What is extern storage class in c?

0 Answers  


What is the size of enum in bytes?

0 Answers  


Categories